That should be trivial, by limiting it to 300 characters: ``` el.tooltip = msg.title.substr(0, 300); ```
Bug 77806 Comment 46 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
That should be trivial, by limiting it to 500 characters: ``` el.tooltip = msg.title.substr(0, 500); ```
That should be trivial, by limiting the tooltip to 500 characters: ``` el.tooltip = msg.subject.substr(0, 500); ``` (You cannot limit the tooltip to a number of lines lines, because it's native code, CSS not applicable. You don't know how large the screen is. A limit to a number of characters is a good enough approximation. Just make sure that it's long enough so any remotely close to normal subjects are not cut, only insane ones like Wayne showed.)
That should be trivial, by limiting the tooltip to 500 characters: ``` el.tooltip = msg.subject.substr(0, 500); ``` (You cannot limit the tooltip to a number of lines, because it's native code, and CSS is not applicable. You don't know how large the screen is. A limit to a number of characters is a good enough approximation. Just make sure that it's long enough so any remotely close to normal subjects are not cut, only insane ones like Wayne showed.)
That should be trivial, by limiting the tooltip to 500 characters: ``` el.tooltip = msg.subject.substr(0, 500); ``` (You cannot limit the tooltip to a number of lines, because it's native code, and CSS is not applicable. You don't know how large the screen is. A limit to a number of characters is a good enough approximation. Just make sure that it's long enough so any remotely close to normal subjects are not cut, only insane ones like Wayne showed. The tooltip is useful to show subjects that are too long for a line - that's the whole reason why we have the tooltip in the first place: to show overly long subjects.)