タブバーを自動で隠す設定のとき、コンテンツ領域の描画がずれたままになる事があったのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6798 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
996506fef7
commit
c112f5754f
@ -465,6 +465,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
if (this.expanded) { // to be hidden or shrunken
|
||||
this.onHiding();
|
||||
this.showHideReason = aReason || this.kSHOWN_BY_UNKNOWN;
|
||||
this.resetContentAreas();
|
||||
}
|
||||
else { // to be shown or expanded
|
||||
this.onShowing();
|
||||
@ -637,6 +638,17 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
}, 0, this);
|
||||
},
|
||||
|
||||
resetContentAreas : function TSTAutoHide_resetContentAreas()
|
||||
{
|
||||
this.mOwner.getTabsArray(this.mOwner.browser).forEach(function(aTab) {
|
||||
try {
|
||||
aTab.linkedBrowser.markupDocumentViewer.move(0, 0);
|
||||
}
|
||||
catch(e) {
|
||||
}
|
||||
}, this);
|
||||
},
|
||||
|
||||
get shouldRedraw()
|
||||
{
|
||||
return this.enabled && this.expanded;
|
||||
|
Loading…
Reference in New Issue
Block a user