uitheme: add inner wrapper to columns missing it

This commit is contained in:
Mottie 2015-02-02 23:13:28 -06:00
parent 9845a692e2
commit 17c30f1710

View File

@ -240,10 +240,13 @@ ts.addWidget({
$(this)[ event.type === 'mouseenter' ? 'addClass' : 'removeClass' ](themes.hover || '');
});
if (!$headers.find('.' + ts.css.wrapper).length) {
$headers.each(function(){
var $this = $(this);
if (!$this.find('.' + ts.css.wrapper).length) {
// Firefox needs this inner div to position the icon & resizer correctly
$headers.wrapInner('<div class="' + ts.css.wrapper + '" style="position:relative;height:100%;width:100%"></div>');
$this.wrapInner('<div class="' + ts.css.wrapper + '" style="position:relative;height:100%;width:100%"></div>');
}
});
if (c.cssIcon) {
// if c.cssIcon is '', then no <i> is added to the header
$headers