Adj grids only when slideAccess visible

This commit is contained in:
Trent 2011-12-02 13:44:58 -05:00
parent fab4a4428a
commit f7eafa9849

View file

@ -643,6 +643,7 @@ $.extend(Timepicker.prototype, {
// fix any grids since sliders are shorter // fix any grids since sliders are shorter
var sliderAccessWidth = $tp.find('.ui-slider-access:eq(0)').outerWidth(true); var sliderAccessWidth = $tp.find('.ui-slider-access:eq(0)').outerWidth(true);
if(sliderAccessWidth){
$tp.find('table:visible').each(function(){ $tp.find('table:visible').each(function(){
var $g = $(this), var $g = $(this),
oldWidth = $g.outerWidth(), oldWidth = $g.outerWidth(),
@ -652,9 +653,11 @@ $.extend(Timepicker.prototype, {
$g.css({ width: newWidth, marginLeft: newMarginLeft }); $g.css({ width: newWidth, marginLeft: newMarginLeft });
}); });
}
},0); },0);
} }
// end slideAccess integration // end slideAccess integration
} }
}, },