Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Force top/left of layer containers to 0,0 to prevent them from gettin…

…g oddly positioned
  • Loading branch information...
commit 6341fd2fa40e0eb9a53269d8e1076efe90b71c45 1 parent d62b0c9
Jason Johnston authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 sources/RendererBase.js
View
6 sources/RendererBase.js
@@ -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 );
}
Please sign in to comment.
Something went wrong with that request. Please try again.