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

Commit

Permalink
Force top/left of layer containers to 0,0 to prevent them from gettin…
Browse files Browse the repository at this point in the history
…g oddly positioned
  • Loading branch information
Jason Johnston committed May 29, 2010
1 parent d62b0c9 commit 6341fd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sources/RendererBase.js
Expand Up @@ -259,11 +259,13 @@ PIE.RendererBase = {
* Get the container element for the shapes, creating it if necessary.
*/
getBox: function() {
var box = this.parent.getLayer( this.zIndex );
var box = this.parent.getLayer( this.zIndex ), s;

if( !box ) {
box = this.element.document.createElement( this.boxName );
box.style.position = 'absolute';
s = box.style;
s.position = 'absolute';
s.top = s.left = 0;
this.parent.addLayer( this.zIndex, box );
}

Expand Down

0 comments on commit 6341fd2

Please sign in to comment.