Skip to content

Commit fc7dedf

Browse files
committed
Return Point.OfFloat in Label:computeSize
This commit adapts Label to return Point.OfFloat object on Label:computeSizeInPixels ultimately returning Point.OfFloat on calling Label:computeSize. This allows precise scaling of Label by its parents. contributes to #2166
1 parent 04de05f commit fc7dedf

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static int checkStyle (int style) {
179179
if (hHint != SWT.DEFAULT) height = hHint;
180180
width += border * 2;
181181
height += border * 2;
182-
return new Point (width, height);
182+
return new Point.OfFloat (width, height);
183183
}
184184

185185
@Override

0 commit comments

Comments
 (0)