509 |
else |
else |
510 |
{ |
{ |
511 |
// otherwise we got a change update from either the VSB or |
// otherwise we got a change update from either the VSB or |
512 |
// HSB model, and we need to update the viewport position to |
// HSB model, and we need to update the viewport positions of |
513 |
|
// both the main viewport and any row or column headers to |
514 |
// match. |
// match. |
515 |
|
|
516 |
int xpos = 0; |
int xpos = 0; |
527 |
if (vp != null |
if (vp != null |
528 |
&& vp.getViewPosition() != pt) |
&& vp.getViewPosition() != pt) |
529 |
vp.setViewPosition(pt); |
vp.setViewPosition(pt); |
530 |
|
|
531 |
|
pt.x = 0; |
532 |
|
|
533 |
|
if (rowHeader != null |
534 |
|
&& rowHeader.getViewPosition() != pt) |
535 |
|
rowHeader.setViewPosition(pt); |
536 |
|
|
537 |
|
pt.x = xpos; |
538 |
|
pt.y = 0; |
539 |
|
|
540 |
|
if (columnHeader != null |
541 |
|
&& columnHeader.getViewPosition() != pt) |
542 |
|
columnHeader.setViewPosition(pt); |
543 |
|
|
544 |
} |
} |
545 |
} |
} |
546 |
}; |
}; |