Guest User

Untitled

a guest
May 27th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff --git
  2. index fb12117..3335daa 100644
  3. --- a/public/new_design/stylesheets/ie/iepngfix.htc
  4. +++ b/public/new_design/stylesheets/ie/iepngfix.htc
  5. @@ -25,8 +25,10 @@ function filt(s, b)
  6. if (s && !(/IMG|INPUT/.test(nodeName) && !b) &&
  7. currentStyle.width == 'auto' && currentStyle.height == 'auto')
  8. {
  9. - style.width = offsetWidth + 'px';
  10. - style.height = clientHeight + 'px';
  11. + var paddingWidth = offsetWidth > 0 ? (parseInt(currentStyle.paddingLeft) + parseInt(currentStyle.paddingRight)) : 0;
  12. + style.width = (offsetWidth - paddingWidth) + 'px';
  13. + var paddingHeight = clientHeight > 0 ? (parseInt(currentStyle.paddingTop) + parseInt(currentStyle.paddingBottom)) : 0;
  14. + style.height = (clientHeight - paddingHeight) + 'px';
  15. if (currentStyle.display == 'inline') style.display = 'inline-block';
  16. }
Add Comment
Please, Sign In to add comment