Skip to content

Commit fd97443

Browse files
committed
Fix CTabFolder border with FloatAwareRectangle WIP
1 parent 1f6354b commit fd97443

File tree

1 file changed

+4
-3
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom

1 file changed

+4
-3
lines changed

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,10 @@ public Rectangle getClientArea() {
892892
trim.height += wrapHeight;
893893
}
894894
if (minimized) return new Rectangle(-trim.x, -trim.y, 0, 0);
895-
int width = size.x - trim.width;
896-
int height = size.y - trim.height;
897-
return new Rectangle(-trim.x, -trim.y, width, height);
895+
float width = ((Point.OfFloat) size).getX() - trim.width;
896+
float height = ((Point.OfFloat) size).getY() - trim.height;
897+
Rectangle.OfFloat r = new Rectangle.OfFloat(-trim.x, -trim.y, width, height);
898+
return r;
898899
}
899900

900901
/**

0 commit comments

Comments
 (0)