Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git
- index fb12117..3335daa 100644
- --- a/public/new_design/stylesheets/ie/iepngfix.htc
- +++ b/public/new_design/stylesheets/ie/iepngfix.htc
- @@ -25,8 +25,10 @@ function filt(s, b)
- if (s && !(/IMG|INPUT/.test(nodeName) && !b) &&
- currentStyle.width == 'auto' && currentStyle.height == 'auto')
- {
- - style.width = offsetWidth + 'px';
- - style.height = clientHeight + 'px';
- + var paddingWidth = offsetWidth > 0 ? (parseInt(currentStyle.paddingLeft) + parseInt(currentStyle.paddingRight)) : 0;
- + style.width = (offsetWidth - paddingWidth) + 'px';
- + var paddingHeight = clientHeight > 0 ? (parseInt(currentStyle.paddingTop) + parseInt(currentStyle.paddingBottom)) : 0;
- + style.height = (clientHeight - paddingHeight) + 'px';
- if (currentStyle.display == 'inline') style.display = 'inline-block';
- }
Add Comment
Please, Sign In to add comment