Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Make VisibilityStyleInfo reset the runtimeStyle's visibility before a…
Browse files Browse the repository at this point in the history
…sking currentStyle whether the element is visible; fixes problem where the VML would disappear in IE6 after initial rendering, because the way we hide borders in IE6 is by setting visibility:hidden on the outer element.
  • Loading branch information
Jason Johnston committed Jun 26, 2010
1 parent 96818e8 commit ecb7b9b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions sources/VisibilityStyleInfo.js
Expand Up @@ -11,9 +11,18 @@ PIE.VisibilityStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
}, },


parseCss: function() { parseCss: function() {
var cs = this.element.currentStyle; var el = this.element,
rs = el.runtimeStyle,
cs = el.currentStyle,
rsVis = rs.visibility,
csVis;

rs.visibility = '';
csVis = cs.visibility;
rs.visibility = rsVis;

return { return {
visible: cs.visibility !== 'hidden', visible: csVis !== 'hidden',
displayed: cs.display !== 'none' displayed: cs.display !== 'none'
} }
}, },
Expand Down

0 comments on commit ecb7b9b

Please sign in to comment.