Adj grids only when slideAccess visible
This commit is contained in:
parent
fab4a4428a
commit
f7eafa9849
1 changed files with 11 additions and 8 deletions
3
jquery-ui-timepicker-addon.js
vendored
3
jquery-ui-timepicker-addon.js
vendored
|
@ -643,6 +643,7 @@ $.extend(Timepicker.prototype, {
|
|||
|
||||
// fix any grids since sliders are shorter
|
||||
var sliderAccessWidth = $tp.find('.ui-slider-access:eq(0)').outerWidth(true);
|
||||
if(sliderAccessWidth){
|
||||
$tp.find('table:visible').each(function(){
|
||||
var $g = $(this),
|
||||
oldWidth = $g.outerWidth(),
|
||||
|
@ -652,9 +653,11 @@ $.extend(Timepicker.prototype, {
|
|||
|
||||
$g.css({ width: newWidth, marginLeft: newMarginLeft });
|
||||
});
|
||||
}
|
||||
},0);
|
||||
}
|
||||
// end slideAccess integration
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue