Permalink
Browse files

If PIE is applied to a position:fixed element, also make the css3 ele…

…ment position:fixed so it stays aligned
  • Loading branch information...
1 parent d6baacf commit d5ccdd6a559bb44c7e4fa68ebec9a8888a3db5eb Jason Johnston committed Jun 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/RootRenderer.js
View
@@ -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 );

0 comments on commit d5ccdd6

Please sign in to comment.