Don't insert needless margins between collapsed tabs. ( #466 )
Negative margins for collapsed tabs were unexpectedly inverted for tabs which have its "cannot be collapsed" parent tab. However, such tabs still can be collapsed if its root parent tab can be collapse its sub tree.
This commit is contained in:
parent
4487c1881e
commit
b21590525d
@ -5785,7 +5785,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
aTab.removeAttribute(this.kX_OFFSET);
|
||||
aTab.removeAttribute(this.kY_OFFSET);
|
||||
|
||||
if (!this.canCollapseSubtree(this.getParentTab(aTab)))
|
||||
if (!this.canCollapseSubtree(this.getRootTab(aTab)))
|
||||
aCollapsed = false;
|
||||
|
||||
aTab.setAttribute(this.kCOLLAPSING_PHASE, aCollapsed ? this.kCOLLAPSING_PHASE_TO_BE_COLLAPSED : this.kCOLLAPSING_PHASE_TO_BE_EXPANDED );
|
||||
|
Loading…
Reference in New Issue
Block a user