タブバーを自動で隠す設定のとき、コンテンツ領域の描画がずれたままになる事があったのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6798 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-07-02 02:47:12 +00:00
parent 996506fef7
commit c112f5754f

View File

@ -465,6 +465,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
if (this.expanded) { // to be hidden or shrunken if (this.expanded) { // to be hidden or shrunken
this.onHiding(); this.onHiding();
this.showHideReason = aReason || this.kSHOWN_BY_UNKNOWN; this.showHideReason = aReason || this.kSHOWN_BY_UNKNOWN;
this.resetContentAreas();
} }
else { // to be shown or expanded else { // to be shown or expanded
this.onShowing(); this.onShowing();
@ -637,6 +638,17 @@ TreeStyleTabBrowserAutoHide.prototype = {
}, 0, this); }, 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() get shouldRedraw()
{ {
return this.enabled && this.expanded; return this.enabled && this.expanded;