Fix compactHeader mode
This commit is contained in:
parent
e0207d9f31
commit
6d7ef4c605
|
@ -221,13 +221,15 @@ define([
|
||||||
'</div>');
|
'</div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
var $parent = this.labelDocName.parent();
|
if (!config.isEdit || !config.customization || !config.customization.compactHeader) {
|
||||||
var _left_width = $parent.position().left,
|
var $parent = this.labelDocName.parent();
|
||||||
_right_width = $parent.next().outerWidth();
|
var _left_width = $parent.position().left,
|
||||||
|
_right_width = $parent.next().outerWidth();
|
||||||
|
|
||||||
if ( _left_width < _right_width )
|
if ( _left_width < _right_width )
|
||||||
this.labelDocName.parent().css('padding-left', _right_width - _left_width);
|
this.labelDocName.parent().css('padding-left', _right_width - _left_width);
|
||||||
else this.labelDocName.parent().css('padding-right', _left_width - _right_width);
|
else this.labelDocName.parent().css('padding-right', _left_width - _right_width);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue