右側に置かれたタブバーに対応

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7170 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-10 02:45:40 +00:00
parent edc86d712e
commit ba6d7ba207
2 changed files with 10 additions and 5 deletions

View File

@ -1294,11 +1294,16 @@ TreeStyleTabBrowser.prototype = {
let box = this._tabStripPlaceHolder.boxObject; let box = this._tabStripPlaceHolder.boxObject;
let root = document.documentElement.boxObject; let root = document.documentElement.boxObject;
strip.style.top = (box.screenY - root.screenY + root.y)+'px';
strip.style.left = (box.screenX - root.screenX + root.x)+'px';
let width = aWidth || parseInt(this._tabStripPlaceHolder.getAttribute('width') || box.width); let realWidth = parseInt(this._tabStripPlaceHolder.getAttribute('width') || box.width);
let height = aHeight || parseInt(this._tabStripPlaceHolder.getAttribute('height') || box.height); let realHeight = parseInt(this._tabStripPlaceHolder.getAttribute('height') || box.height);
let width = aWidth || realWidth;
let height = aHeight || realHeight;
let xOffset = this.currentTabbarPosition == 'right' ? width - realWidth : 0 ;
let yOffset = this.currentTabbarPosition == 'bottom' ? height - realHeight : 0 ;
strip.style.top = (box.screenY - root.screenY + root.y - yOffset)+'px';
strip.style.left = (box.screenX - root.screenX + root.x - xOffset)+'px';
strip.style.width = (tabContainerBox.width = width)+'px'; strip.style.width = (tabContainerBox.width = width)+'px';
strip.style.height = (tabContainerBox.height = height)+'px'; strip.style.height = (tabContainerBox.height = height)+'px';

View File

@ -265,7 +265,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
if (!this.emulatedTransparency && this.expanded) { // Firefox 4.0- if (!this.emulatedTransparency && this.expanded) { // Firefox 4.0-
box = { box = {
screenX : box.screenX + this.XOffset, screenX : box.screenX + (pos == 'left' ? this.XOffset : 0 ),
screenY : box.screenY, screenY : box.screenY,
width : box.width - this.XOffset, width : box.width - this.XOffset,
height : box.height height : box.height