]> source.dussan.org Git - jquery-ui.git/commitdiff
add collision option to position call
authorAlex May <alex.k.may@gmail.com>
Mon, 23 May 2011 23:02:57 +0000 (16:02 -0700)
committerAlex May <alex.k.may@gmail.com>
Mon, 23 May 2011 23:02:57 +0000 (16:02 -0700)
ui/jquery.ui.selectmenu.js

index deb7b419bfbb85f64c5295858bcedd4679cc0bb8..89a72c4b999c97ff15563a9ce265ea95dd8af67f 100644 (file)
@@ -766,7 +766,8 @@ $.widget("ui.selectmenu", {
                                of: o.positionOptions.of || this.newelement,
                                my: o.positionOptions.my,
                                at: o.positionOptions.at,
-                               offset: o.positionOptions.offset || _offset
+                               offset: o.positionOptions.offset || _offset,
+                               collision: o.positionOptions.collision || 'flip'
                        });
        }
 });