タブバーの縦横切り替え時にインデントが正しく更新されない場合があった
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4671 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
2ef2038493
commit
af0637eaee
@ -842,8 +842,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
b.mStrip.removeAttribute('height');
|
b.mStrip.removeAttribute('height');
|
||||||
b.mPanelContainer.removeAttribute('height');
|
b.mPanelContainer.removeAttribute('height');
|
||||||
|
|
||||||
this.updateTabbarState();
|
|
||||||
|
|
||||||
if (pos == this.kTABBAR_RIGHT) {
|
if (pos == this.kTABBAR_RIGHT) {
|
||||||
b.setAttribute(this.kTABBAR_POSITION, 'right');
|
b.setAttribute(this.kTABBAR_POSITION, 'right');
|
||||||
if (this.getTreePref('tabbar.invertTab')) {
|
if (this.getTreePref('tabbar.invertTab')) {
|
||||||
@ -917,8 +915,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
b.setAttribute(this.kMODE, this.getTreePref('tabbar.multirow') ? 'multirow' : 'horizontal' );
|
b.setAttribute(this.kMODE, this.getTreePref('tabbar.multirow') ? 'multirow' : 'horizontal' );
|
||||||
b.removeAttribute(this.kTAB_INVERTED);
|
b.removeAttribute(this.kTAB_INVERTED);
|
||||||
|
|
||||||
this.updateTabbarState();
|
|
||||||
|
|
||||||
if (pos == this.kTABBAR_BOTTOM) {
|
if (pos == this.kTABBAR_BOTTOM) {
|
||||||
b.setAttribute(this.kTABBAR_POSITION, 'bottom');
|
b.setAttribute(this.kTABBAR_POSITION, 'bottom');
|
||||||
this.indentProp = this.getTreePref('indent.property.bottom');
|
this.indentProp = this.getTreePref('indent.property.bottom');
|
||||||
@ -947,6 +943,10 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
this.updateTabCollapsed(aTab, aTab.getAttribute(this.kCOLLAPSED) == 'true', true);
|
this.updateTabCollapsed(aTab, aTab.getAttribute(this.kCOLLAPSED) == 'true', true);
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
window.setTimeout(function(aSelf) {
|
||||||
|
aSelf.updateTabbarState();
|
||||||
|
}, 0, this);
|
||||||
|
|
||||||
b = null;
|
b = null;
|
||||||
pos = null;
|
pos = null;
|
||||||
splitter = null;
|
splitter = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user