Skip to content

Commit

Permalink
If PIE is applied to a position:fixed element, also make the css3 ele…
Browse files Browse the repository at this point in the history
…ment position:fixed so it stays aligned
  • Loading branch information
Jason Johnston committed Jun 6, 2010
1 parent d6baacf commit d5ccdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/RootRenderer.js
Expand Up @@ -83,7 +83,7 @@ PIE.RootRenderer = PIE.RendererBase.newRenderer( {
box = this._box = el.document.createElement( 'css3-container' );
s = box.style;

s.position = 'absolute';
s.position = el.currentStyle.position === 'fixed' ? 'fixed' : 'absolute';
this.updateVisibility();

el.parentNode.insertBefore( box, el );
Expand Down

0 comments on commit d5ccdd6

Please sign in to comment.