]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: add 1px to menu width to avoid wrapping long text in IE10 1023/head
authorFelix Nagel <info@felixnagel.com>
Mon, 25 Nov 2013 23:56:50 +0000 (00:56 +0100)
committerFelix Nagel <info@felixnagel.com>
Mon, 25 Nov 2013 23:56:50 +0000 (00:56 +0100)
ui/jquery.ui.selectmenu.js

index ad445386d5adafec12f8177ac0aeec658c64c8f3..c8e2975e439aac9ff23a8c2c0794f80c824f54ac 100644 (file)
@@ -492,7 +492,9 @@ $.widget( "ui.selectmenu", {
        _resizeMenu: function() {
                this.menu.outerWidth( Math.max(
                        this.button.outerWidth(),
-                       this.menu.width( "" ).outerWidth()
+                       // IE10 wraps long text (possibly a rounding bug)
+                       // so we add 1px to avoid the wrapping
+                       this.menu.width( "" ).outerWidth() + 1
                ) );
        },