Permalink
Browse files

Make VisibilityStyleInfo reset the runtimeStyle's visibility before a…

…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
Jason Johnston committed Jun 26, 2010
1 parent 96818e8 commit ecb7b9ba24626c33173a13691ac23fa9d15726a1
Showing with 11 additions and 2 deletions.
  1. +11 −2 sources/VisibilityStyleInfo.js
@@ -11,9 +11,18 @@ PIE.VisibilityStyleInfo = PIE.StyleInfoBase.newStyleInfo( {
},
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 {
- visible: cs.visibility !== 'hidden',
+ visible: csVis !== 'hidden',
displayed: cs.display !== 'none'
}
},

0 comments on commit ecb7b9b

Please sign in to comment.