-
20 Feb 2012 7:25 AM #1
QuickTip does not show whole title
QuickTip does not show whole title
REQUIRED INFORMATIONExt version tested:
- Ext 4.0.7
- Chrome 17
- IE9
- Firefox 10
- HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
- When creating a tooltip with a "title" property longer than the "text" property, the title gets cut off.
- The easiest way to reproduce is to go to the QuickTipManager in the Sencha docs http://docs.sencha.com/ext-js/4-0/#!...uickTipManager and edit the example under "// Manually register a quick tip for a specific element" to contain a title that is longer than the text. Then click "Live preview".
- A bold title showing the entirety of the title, plus the shorter text (not bold) shown under it.
- The bold title is cut off at the first word that becomes longer than the quicktip text.
HELPFUL INFORMATIONPossible fix:Code:Ext.tip.QuickTipManager.register({ target: 'quickTipContainer', title: 'My long (and dynamic) title ', text: 'Detail info'});- not provided
- only default ext-all.css
- Ubuntu 11.10
- Windows 7
-
20 Feb 2012 7:29 AM #2
The obvious workaround is to set the quicktip text to something like "<b>My long and possibly dynamic title</b><br>The short text." but I consider the current behaviour a bug, so I'm reporting is as such.
Best regards,
/jlindbergh
-
12 Apr 2012 11:27 PM #3
Is this considered a bug? Is it fixed in the upcoming release of ExtJS 4.1?
-
18 Feb 2013 12:24 AM #4
I think this is a bug and it seems that it hasn't been fixed in the current release.
I tested the following code in firebug on the docs page of ExtJS 4.1 and I get the same error:
And there is another bug. If I try the following, there is a space between title and body (I think it was reserved for a second line of the title, which it doesn't have).PHP Code:var tip = Ext.create('Ext.tip.ToolTip', {
title: 'aaaaaaaaaaa bbbbbbbbbb ccccccccccccc',
html: 'abc',
renderTo: Ext.getBody()
});
tip.showAt([200,100]);
The commented line will fix the problem in my case, but this couldn't be the solution.PHP Code:Ext.defer(function() {
tip.update('abc<br/>aaaaaaaa bbbbbbbb ccccccccc');
// tip.doLayout();
}, 2000);
For the moment I put the following code in the launch-function of my application as a workaround (This only works for automatically generated QuickTips, e.g. in a TreePanel):
PHP Code:Ext.tip.QuickTipManager.getQuickTip().on('resize', function(tip) {
tip.doLayout();
var headerDom = tip.header.el.select('.x-tip-header-text').elements[0];
var headerWidth = Ext.get(headerDom).getWidth() + (tip.getEl().getPadding('lr') * 2);
if(tip.getWidth() < headerWidth) {
tip.setWidth(headerWidth);
}
}, this);
-
27 Mar 2013 12:13 AM #5
Hi,
it's not fixed in 4.2.0.663.
And there is another bug: In an Ext.tree.Panel the qtitle (from json data) is hidden, only the qtip is shown.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote