From 86dfdb8db56451f46671be91f54b55944a6d47bf Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 18 Jan 2012 01:30:01 +0100 Subject: [PATCH] added: option appendTo (where to append menu element), thx @payahnih, see #155 --- ui/jquery.ui.selectmenu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index cc75ce87e..811c87585 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -17,6 +17,7 @@ $.widget("ui.selectmenu", { eventPrefix: "selectmenu", options: { transferClasses: true, + appendTo: "body", typeAhead: 1000, style: 'dropdown', positionOptions: { @@ -203,7 +204,7 @@ $.widget("ui.selectmenu", { }); this.listWrap = $( "
", { 'class': self.widgetBaseClass + '-menu' - }).append( this.list ).appendTo( 'body' ); + }).append( this.list ).appendTo( o.appendTo ); // transfer menu click to menu button this.list -- 2.39.5