I am using canvas component in my module which is designed in such a way that it will show 10 Names (Using Label) each with a checkbox
I have restricted label width for each name such that only 100 characters are displayed in Canvas and if name is beyond 100 chars, name gets truncated in such a way that 100 chars are followed by three dots (...) and on hovering over the name complete tool tip is displayed which displayes complete name
Now the problem is when name is too long 1000-1500 chars and I hover ober the truncated name, application almost hangs or browser crashes
If I do not restrict label width and give a horizontal scroll to it for displaying complete names, application runs fine
Why such behavior exists?Why tooltip is giving problem while rendering long label names?
Smells like a bug. If you can create a simple test case, file a bug at
May be this is the reason - as per adobe docs "Flex wraps the text of a ToolTip onto multiple lines to ensure that the width does not exceed this value. If the text in the ToolTip box is not as wide as the maxWidth property, Flex creates a box only wide enough for the text to fit.
The default value of maxWidth is 300. If the value of maxWidth exceeds the width of the application, Flex clips the text in the ToolTip box."