@@ -503,6 +503,7 @@ public void paintOffscreen(Graphics2D g, Rectangle rect, boolean batch) {
503
503
g .translate (mainPanel .getNamePanelX (), 0 );
504
504
505
505
Rectangle nameRect = new Rectangle (children [0 ].getBounds ());
506
+ nameRect .y = rect .y ;
506
507
nameRect .height = h ;
507
508
if (nameRect .width > 0 ) {
508
509
Graphics2D nameGraphics = (Graphics2D ) g .create ();
@@ -513,7 +514,7 @@ public void paintOffscreen(Graphics2D g, Rectangle rect, boolean batch) {
513
514
514
515
int dx = mainPanel .getAttributePanelX () - mainPanel .getNamePanelX ();
515
516
g .translate (dx , 0 );
516
- Rectangle attRect = new Rectangle (0 , 0 , children [1 ].getWidth (), h );
517
+ Rectangle attRect = new Rectangle (0 , rect . y , children [1 ].getWidth (), h );
517
518
if (attRect .width > 0 ) {
518
519
Graphics2D attGraphics = (Graphics2D ) g .create ();
519
520
attGraphics .setClip (attRect );
@@ -523,7 +524,7 @@ public void paintOffscreen(Graphics2D g, Rectangle rect, boolean batch) {
523
524
524
525
dx = mainPanel .getDataPanelX () - mainPanel .getAttributePanelX ();
525
526
g .translate (dx , 0 );
526
- Rectangle dataRect = new Rectangle (0 , 0 , mainPanel .getDataPanelWidth (), h );
527
+ Rectangle dataRect = new Rectangle (0 , rect . y , mainPanel .getDataPanelWidth (), h );
527
528
Graphics2D dataGraphics = (Graphics2D ) g .create ();
528
529
dataGraphics .setClip (dataRect );
529
530
((Paintable ) children [2 ]).paintOffscreen (dataGraphics , dataRect , batch );
0 commit comments