Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Internet Explorer 8.x
Language Found: English
Description
Steps to reproduce:
the problem is that text that you assign to tootip ( s var) is not wrapped well in some cases.
1.create tootip instance by ToolTipManager , the most important you should assign appropriate text try to text that has 57 "x" characters
2.run the project you see that the tootip's text in not wrapped but overflows the borders of the tooltip
3.now add one more character of x to your tootlip now you have 58 characters and you see that now text's is wrapped and you have line break.
4. if you add style to tooltip with no default font size, for example 50 and even if you change the width and height of tootip it bahaves the same , so even if you have text with around 58 characters more or less depends on the characters text is not wrapped but when you add one more suddenly you they are wrapped and you can see 4 5 lines.
i found out that it doesnt take into account the styles of tooltip to calculate the wrapping. i trace the line metrics of tooltips text with default font size and i found that if the width of text line is more than 287 its wrapped but if it's less it;s not wrapped and it the same when you apply font size to toolip , even though you may have text with 58 fontsize its wrapped as the dafault size(10) exceeds 287
Actual Results:
in some cases tootlips text is wrapped and in some its not
Expected Results:
as text exceeds the width of tooltip it should be break to another line
Workaround (if any):
when i figured out that it has something to do with length of texts , i added extra characters , spaces