Community
Participate
Working Groups
Created attachment 221498 [details] StyledTextMarginsBugTest.java StyledText with a margin is laying out incorrectly because of the bug in the StyledText.computeSize(int,int,boolean) method. This bug results in incorrect layout of the StyledText with a margin set. In my tests (and for my pourposes) I set a width constraint for the StyledText and expect that the text will be wrapped into additional lines (which it does btw), but the computeSize reports incorrect height (without the wrapped additional lines) which is inconsistent with the fact that the line is actually and correctly wrapped. Only the computeSize(int,int,boolean) method has to be patched in my knowledge. I attach a jUnit test class with: - test case that fails if this bug is in place - main method that runs the modelled setting The test should be broadened to address all ill-effects of this bug - i currently test only right margin present. If you can tell me, how to compile the swt library myself, than I can create a patch as well.
Created attachment 221500 [details] ScreenShot of the described test case
This bug seems to be the same as https://bugs.eclipse.org/bugs/show_bug.cgi?id=387333
(In reply to comment #0) > If you can tell me, how to compile the swt library myself, than I can create > a patch as well. Thanks for the report and offer to create a patch! This page has the steps required to setup and run the SWT source code --> http://eclipse.org/swt/git.php.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.