PDA

View Full Version : LoadMask text centering



michbak
24 Jan 2011, 2:42 AM
Hi,

Wouldn't it be better to replace


mm.center(me);line in Ext.Element.mask() with:



mm.applyStyles(
{
left: '50%',
top: '50%',
'margin-left': (-mm.getWidth() / 2).toFixed() + 'px',
'margin-top': (-mm.getHeight() / 2).toFixed() + 'px'
});

?

I think it will resolve problems with centering mask text. Checked in Chrome 8 and FF 3.6.13.

Best regards,
Michal.