Skip to content

Commit

Permalink
Lighthouse-335. Resizable in Google Chrome has issues when style prop…
Browse files Browse the repository at this point in the history
…erties are empty
  • Loading branch information
Christopher Pitt authored and anutron committed Sep 22, 2010
1 parent 62ec957 commit 63af3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Drag/Drag.js
Expand Up @@ -99,7 +99,7 @@ var Drag = new Class({
};
for (var z in this.options.modifiers){
if (!this.options.modifiers[z]) continue;
if (this.options.style) this.value.now[z] = this.element.getStyle(this.options.modifiers[z]).toInt();
if (this.options.style) this.value.now[z] = (this.element.getStyle(this.options.modifiers[z]) || 0).toInt();
else this.value.now[z] = this.element[this.options.modifiers[z]];
if (this.options.invert) this.value.now[z] *= -1;
if (this._invert[z]) this.value.now[z] *= -1;
Expand Down

0 comments on commit 63af3cc

Please sign in to comment.