Skip to content
Permalink
Browse files

Button: Fixed RTL detection to default to LTR. Fixes #7697 - Buttonse…

…t: Incorrect corners for disconnected elements.
  • Loading branch information
scottgonzalez committed Sep 6, 2011
1 parent 02c821d commit 08450c3b2dfa652c7866653af93566c9bfa2f2cb
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.button.js
@@ -379,7 +379,7 @@ $.widget( "ui.buttonset", {
},

refresh: function() {
var ltr = this.element.css( "direction" ) === "ltr";
var rtl = this.element.css( "direction" ) === "rtl";

this.buttons = this.element.find( this.options.items )
.filter( ":ui-button" )
@@ -393,10 +393,10 @@ $.widget( "ui.buttonset", {
})
.removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
.filter( ":first" )
.addClass( ltr ? "ui-corner-left" : "ui-corner-right" )
.addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
.end()
.filter( ":last" )
.addClass( ltr ? "ui-corner-right" : "ui-corner-left" )
.addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
.end()
.end();
},

0 comments on commit 08450c3

Please sign in to comment.
You can’t perform that action at this time.