Skip to content

Commit

Permalink
Updating fselectmenu.js to work with all jquery versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tumbochka committed Sep 22, 2015
1 parent c1b5659 commit b99d28c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/FSelectMenu/Bundle/Resources/public/js/modules/fselectmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,16 @@

var root = this._root
, offset = root.offset()
, height = root.outerHeight().height()
, width = root.outerWidth().width();

, height = root.outerHeight()
, width = root.outerWidth()

if (typeof height != "number") {
height = height.height();
}
if (typeof width != "number") {
width = width.width();
}


this._options.css({
'minWidth': width+'px'
Expand Down Expand Up @@ -372,3 +378,4 @@
init: init
};
}));

0 comments on commit b99d28c

Please sign in to comment.