File tree Expand file tree Collapse file tree
src/main/java/org/fxmisc/flowless Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,15 +324,17 @@ private void setHPosition(double pos) {
324324 pos ,
325325 content .getLayoutBounds ().getWidth (),
326326 content .totalWidthEstimateProperty ().getValue ());
327- content .estimatedScrollXProperty ().setValue (offset );
327+ content .estimatedScrollXProperty ().setValue (( double ) Math . round ( offset ) );
328328 }
329329
330330 private void setVPosition (double pos ) {
331331 double offset = scrollbarPositionToOffset (
332332 pos ,
333333 content .getLayoutBounds ().getHeight (),
334334 content .totalHeightEstimateProperty ().getValue ());
335- content .estimatedScrollYProperty ().setValue (offset );
335+ // offset needs rounding otherwise thin lines appear between cells,
336+ // usually only visible when cells have dark backgrounds/borders.
337+ content .estimatedScrollYProperty ().setValue ((double ) Math .round (offset ));
336338 }
337339
338340 private static void setupUnitIncrement (ScrollBar bar ) {
You can’t perform that action at this time.
0 commit comments