Skip to content

Commit a3a5c65

Browse files
committed
Button: Apply overflow: hidden in all browsers except IE 6,7 to avoid expanding the size of the button from negative text indent. Fixes #7911 - Button: icon only button in dialog causes horizontal scrollbar in Opera.
1 parent fea9caa commit a3a5c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/base/jquery.ui.button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* http://docs.jquery.com/UI/Button#theming
99
*/
10-
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
10+
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: hidden; *overflow: visible; } /* the overflow property removes extra width in IE */
1111
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
1212
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
1313
.ui-button-icons-only { width: 3.4em; }

0 commit comments

Comments
 (0)