Merge pull request #144 from edg2s/patch-2
Only use default pos if top/left are undefined
This commit is contained in:
@@ -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%'
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user