diff -r 4ad59aaee882 -r 2f468c1958d0 javauis/lcdui_qt/src/javax/microedition/lcdui/ScrolledTextComposite.java --- a/javauis/lcdui_qt/src/javax/microedition/lcdui/ScrolledTextComposite.java Fri Sep 17 08:28:21 2010 +0300 +++ b/javauis/lcdui_qt/src/javax/microedition/lcdui/ScrolledTextComposite.java Mon Oct 04 00:10:53 2010 +0300 @@ -91,9 +91,9 @@ { iTextScrolling = false; vBar.setVisible(false); - Point nextSize = iESWTTextLabel.computeSize(getClientArea().width, + Point nextSize = iESWTTextLabel.computeSize(getParent().getClientArea().width, SWT.DEFAULT); - if(nextSize.y > getClientArea().height) + if(nextSize.y > getParent().getClientArea().height) { iTextScrolling = true; vBar.setVisible(true); @@ -122,7 +122,7 @@ iESWTTextLabel.setSize(calculateTextSize()); Rectangle contentRect = iESWTTextLabel.getBounds(); - Rectangle hostRect = getClientArea(); + Rectangle hostRect = getParent().getClientArea(); vBar.setMaximum(contentRect.height); vBar.setThumb(Math.min(contentRect.height, hostRect.height)); int vPage = contentRect.height - hostRect.height; @@ -173,6 +173,11 @@ resizing = true; layout(); resizing = false; + if((Display.getDisplay().getCurrent() instanceof Alert) && + (isTextScrolling() == true)) + { + Display.getDisplay().getCurrent().setCommandsVisibility(true); + } } }