Summary: | StyledText does not compute correct text width (1GELJXD) | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Mike Wilson <Mike_Wilson> |
Component: | SWT | Assignee: | Knut Radloff <knut_radloff> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | CC: | Claude_Knaus, Dave_Dykstal, kai-uwe_maetzel |
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | Windows All | ||
Whiteboard: |
Description
Mike Wilson
2001-10-11 14:20:53 EDT
*** Bug 4629 has been marked as a duplicate of this bug. *** *** Bug 5130 has been marked as a duplicate of this bug. *** PRODUCT VERSION: 114 We now calculate and cache line widths as lines become available. Line widths are reset when text is changed or styles are set (because the bold style could change, affecting the line width). We also override both of the redraw methods and there's new code in redrawRange to handle the case where a custom LineStyleListener changes styles internally and calls redraw to get the style change on screen. The horizontal scroll bar always reflects the widest line seen so far. |