Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefbb794

Browse files
author
zhourenjian
committed
Fixed bug that Group's title might be crossed by its border in some cases
1 parent10ad6cd commitefbb794

File tree

1 file changed

+3
-3
lines changed
  • sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets

1 file changed

+3
-3
lines changed

‎sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Group.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,11 @@ public void setText (String string) {
475475
if (!string.equals(groupText)) {
476476
OS.clearChildren(titleText);
477477
titleText.appendChild(document.createTextNode(string));
478-
textWidth =OS.getContainerWidth(titleText);
479-
if (textWidth ==0) {
478+
//textWidth = OS.getContainerWidth(titleText);
479+
//if (textWidth == 0) {
480480
//textWidth = UIStringUtil.calculatePlainStringLineWidth(string);
481481
textWidth =OS.getStringStyledWidth(string,"group-default",handle.style.cssText);
482-
}
482+
//}
483483
if (textWidth !=0) {
484484
intw =this.width -textWidth -24;
485485
if (w >0) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp