Use the supplied position values instead of hardcoded

This commit is contained in:
Amir E. Aharoni
2013-04-26 16:11:12 +03:00
parent 387ca09455
commit 64cc7969a7

View File

@@ -160,11 +160,7 @@
* Show the ULS window
*/
show: function () {
var pos = this.position();
this.$menu.css( {
top: pos.top,
left: '25%'
} );
this.$menu.css( this.position() );
if ( this.options.compact ) {
this.$menu.addClass( 'uls-compact' );