PDA

View Full Version : [4.0.6] Specifying minWidth on a tooltip with a title causes wrong height to be used



enw
20 Oct 2011, 6:49 AM
Run this code and hover mouse over "LOL" for tooltip:


Ext.onReady (function () {
var lol = document.createElement ('P');

lol.id = 'lol';
lol.innerHTML = 'LOL';
document.body.appendChild (lol)

Ext.widget ('tooltip',
{ title: 'Some long long title',
minWidth: 140,
target: 'lol' });
});


The tooltip will be unreasonably high, with a lot of empty space beneath the title line. I guess the height is computed without taking 'minWidth' into account, which is applied later without altering height at all.