Skip to content

Commit

Permalink
IE6-7 overflow bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzos committed Nov 12, 2012
1 parent f51e626 commit ad91a16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Panner.js
Expand Up @@ -35,12 +35,17 @@ var Panner = new Class({
if (!(['relative', 'absolute'].contains(this.content.getStyle('position')))) this.content.setStyle('position', 'relative');
this.container.setStyle('overflow', 'hidden');

// Force container position for IE6-7 (this solves an overflow bug)
if (Browser.ie6 || Browser.ie7) {
if (!(['relative', 'absolute'].contains(this.container.getStyle('position')))) this.container.setStyle('position', 'relative');
}

// Attach
this.attach();

// Manage window resizing
window.addEvent('resize', function() { if (this.attached) this.refresh(); }.bind(this));

// Center?
if (this.options.center) this.center();

Expand Down

0 comments on commit ad91a16

Please sign in to comment.