No problem ;) I was myself doubting this can be considered a jQuery bug. I guess developers will have to take this into account when playing with dimensions in IE.
For people who may encounter this problem, here is a code snippet that may help :
- if ($('.myselector').css('filter').match(/DXImageTransform\.Microsoft\.Shadow/)) {
- height -= $('.myselector').get(0).filters.item("DXImageTransform.Microsoft.Shadow").strength;
- }
We cannot do :
- if ($('.myselector').get(0).filters && $('.myselector').get(0).filters.item("DXImageTransform.Microsoft.Shadow")) {
Since this would throw an error if no filter is set on the element.