Skip to content
Permalink
Browse files

Selectmenu: CGL and lint fixes

  • Loading branch information
fnagel committed Dec 15, 2012
1 parent 1b1dbd8 commit 76f335ea68982f90c45b3ec1d124434645edbd2e
Showing with 4 additions and 3 deletions.
  1. +4 −3 ui/jquery.ui.selectmenu.js
@@ -190,16 +190,17 @@ $.widget( "ui.selectmenu", {
return;
}

var _position = {
var currentItem,
_position = {
of: this.button
};

this.isOpen = true;
this._toggleAttr();

// do not change position if non default position options are set (needed for custom positioned popup menus)
if ( this.items && !this.options.dropdown && this.options.position.my == "left top" && this.options.position.at == "left bottom" ) {
var currentItem = this._getSelectedItem();
if ( this.items && !this.options.dropdown && this.options.position.my === "left top" && this.options.position.at === "left bottom" ) {
currentItem = this._getSelectedItem();
// center current item
if ( this.menu.outerHeight() < this.menu.prop( "scrollHeight" ) ) {
this.menuWrap.css( "left" , -10000 );

0 comments on commit 76f335e

Please sign in to comment.
You can’t perform that action at this time.