| Summary: | [Text][TextSizeDetermination] calling pack() does not remove scrollbars on multi line texts. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Frank Appel <fr.appel> | ||||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | 1.4 | ||||||||||
| Target Milestone: | 1.5 M3 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Frank Appel
Frank, I think that your snippet is not so correct. You have a multi text widget with a parent ScrolledComposite (OS400JTerminal#getComposite), but you never set the content (call ScrolledComposite#setContent) on this ScrolledComposite. Thas't why the Text widget is not visible for me. Adding ScrolledComposite#setContent( testText) at the end of run method makes the Text widget visible. As ScrolledComposite maintain the bounds of its content, I don't understand the usage of pack() method here. If I change OS400JTerminal#getComposite to return a Composite, not ScrolledComposite, everything is working fine. Created attachment 204272 [details]
project to reproduce problem
Changed the project to use Composite instead of scrolled composite as described by Ivan (the demo code was not written by me and it seemed to work at the time that I filed the bug). Anyway the problem persists using composite, but occurs only, if you use a browser within eclipse IDE (see screenshot attachment). Therefore I consider this a lower priority problem...
Created attachment 204273 [details]
Screenshot using Browser (IE 9) integrated in IDE
(In reply to comment #2) > Created attachment 204272 [details] > project to reproduce problem > > Changed the project to use Composite instead of scrolled composite as described > by Ivan (the demo code was not written by me and it seemed to work at the time > that I filed the bug). Anyway the problem persists using composite, but occurs > only, if you use a browser within eclipse IDE (see screenshot attachment). > Therefore I consider this a lower priority problem... Note that I did the latest tests against CVS HEAD. Note that this problem may be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=359380 By switching IE to standard rendering (bug 270397) layout in IE9 x64 is not broken anymore and I can't reproduce this issue anymore. |