| Summary: | alignment doesn't work in Text with MULTI | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kevin Barnes <cocoakevin> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse.felipe, grant_gayed, Silenio_Quarti, skovatch |
| Version: | 3.5 | Keywords: | triaged |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | stalebug | ||
|
Description
Kevin Barnes
if you turn on WRAP, alignment starts to work again. To disable wrapping we set the NSTextContainer's size to be very big and this seems to be breaking the alignment. StyledText has the same problem (alignment only works when wrap is on). Having a multi line text with a hscroll and (center/right) alignment doesn't make a lot of sense. On win32 if alignment != left you get free wrap. should we just do the same here ? Sounds like an acceptable fix. Where is that code in win32 Text? (In reply to comment #3) > Sounds like an acceptable fix. Where is that code in win32 Text? No code in our ends, it happens for free in the OS. (In reply to comment #2) > StyledText has the same problem (alignment only works when wrap is on). > Having a multi line text with a hscroll and (center/right) alignment doesn't > make a lot of sense. > On win32 if alignment != left you get free wrap. should we just do the same > here ? Does the style bit SWT.WRAP gets set for free as well? Is H_SCROLL removed? (In reply to comment #5) > Does the style bit SWT.WRAP gets set for free as well? No. >Is H_SCROLL removed? No. as I said, it happens behind the scenes in win32. Bug triaged, visit https://wiki.eclipse.org/SWT/Devel/Triage for more information. 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. |