isMaximized => maximized

This commit is contained in:
SHIMODA Hiroshi 2011-12-14 15:28:47 +09:00
parent 55854683a0
commit e6f29af997

View File

@ -205,7 +205,7 @@ TreeStyleTabWindow.prototype = {
return toolbox && toolbox.customizing;
},
get isMaximized()
get maximized()
{
return (
this.window.fullScreen ||
@ -218,7 +218,7 @@ TreeStyleTabWindow.prototype = {
{
aTabBrowser = aTabBrowser || this.browser;
var safePadding = 20; // for window border, etc.
var windowWidth = this.isMaximized ? this.window.screen.availWidth - safePadding : this.window.outerWidth ;
var windowWidth = this.maximized ? this.window.screen.availWidth - safePadding : this.window.outerWidth ;
var rootWidth = parseInt(this.document.documentElement.getAttribute('width') || 0);
var max = Math.max(windowWidth, rootWidth);
return Math.max(0, Math.min(aWidth, max * this.MAX_TABBAR_SIZE_RATIO));
@ -228,7 +228,7 @@ TreeStyleTabWindow.prototype = {
{
aTabBrowser = aTabBrowser || this.browser;
var safePadding = 20; // for window border, etc.
var windowHeight = this.isMaximized ? this.window.screen.availHeight - safePadding : this.window.outerHeight ;
var windowHeight = this.maximized ? this.window.screen.availHeight - safePadding : this.window.outerHeight ;
var rootHeight = parseInt(this.document.documentElement.getAttribute('height') || 0);
var max = Math.max(windowHeight, rootHeight);
return Math.max(0, Math.min(aHeight, max * this.MAX_TABBAR_SIZE_RATIO));