Skip to content

Commit 2a34655

Browse files
committed
Fix CTabFolder border with FloatAwareRectangle WIP
1 parent b6a2704 commit 2a34655

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,10 @@ public Rectangle getClientArea() {
894894
if (minimized) return new Rectangle(-trim.x, -trim.y, 0, 0);
895895
int width = size.x - trim.width;
896896
int height = size.y - trim.height;
897-
return new Rectangle(-trim.x, -trim.y, width, height);
897+
FloatAwareRectangle r = new FloatAwareRectangle(-trim.x, -trim.y, width, height);
898+
r.residualWidth = -((FloatAwarePoint) size).residualX;
899+
r.residualHeight = -((FloatAwarePoint) size).residualY;
900+
return r;
898901
}
899902

900903
/**

0 commit comments

Comments
 (0)