I'm using jquery UI tabs , on every tab i have 2 radios in a buttonset
the init of the buttonset is in the document ready function.
on the current active tab the buttons are with rounded corners as they should be,
but when i change the tab suddenly the buttonset is not with rounded corners, but if i refresh the buttons become rounded. how to fix that?
i think the problem appears because probably the widget doesn't addClass rounded to invisible items.
exactly as i thought
in 1.8.5 full min js on line 354
- a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()},