We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10ad6cd commit efbb794Copy full SHA for efbb794
sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Group.java
@@ -475,11 +475,11 @@ public void setText (String string) {
475
if (!string.equals(groupText)) {
476
OS.clearChildren(titleText);
477
titleText.appendChild(document.createTextNode(string));
478
- textWidth = OS.getContainerWidth(titleText);
479
- if (textWidth == 0) {
+// textWidth = OS.getContainerWidth(titleText);
+// if (textWidth == 0) {
480
// textWidth = UIStringUtil.calculatePlainStringLineWidth(string);
481
textWidth = OS.getStringStyledWidth(string, "group-default", handle.style.cssText);
482
- }
+// }
483
if (textWidth != 0) {
484
int w = this.width - textWidth - 24;
485
if (w > 0) {
0 commit comments