Merge pull request #144 from edg2s/patch-2

Only use default pos if top/left are undefined
This commit is contained in:
Niklas Laxström
2014-04-22 10:41:05 +03:00

View File

@@ -149,8 +149,8 @@
height: this.$element[0].offsetHeight
} );
return {
top: this.top || pos.top + pos.height,
left: this.left || '25%'
top: this.top !== undefined ? this.top : pos.top + pos.height,
left: this.left !== undefined ? this.left : '25%'
};
},