1 vote
A unit type of "em" is invalid for parse padding

Description

 
Please, please look at the attached project (zipped) VS2008, where the AjaxToolkit 3.0.3512 - DropDownExtender in a GridView ("Status" column) with my mandatory CSS produces the popup error message from the title.
That occurs with IE7 but not with Firefox 2.

Thanks in advance,
Andrei Martin Aszodi

File Attachments


Comments

most recent at top (show oldest at top)
aszodiam wrote Jun 28 at 10:09 AM
The function:

parsePadding: function(padding) {
/// <summary>
/// Parses a padding string into a pixel size
/// </summary>
/// <param name="padding" type="String" mayBeNull="true">
/// Padding to parse ('inherit',px unit,null,'')
/// </param>
/// <returns type="Number" integer="true">
/// Number of pixels in the padding
/// </returns>

if (padding) {
if (padding == 'inherit') {
return 0;
}
var unit = this.parseUnit(padding);
Sys.Debug.assert(unit.type == 'px', String.format(AjaxControlToolkit.Resources.Common_InvalidPaddingUnit, unit.type));
return unit.size;
}
return 0;
},

from Common.js called by getMargin: function(element, boxSide) and getPadding: function(element, boxSide).

If the code could explaine that the "em" unit.type is returning invalid, is at least strange that Firefox works with while IE7 doesn't.

aszodiam wrote Jun 28 at 9:55 AM
The correct version of AjaxToolkit is 3.0.30512.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987