フルズーム対応を改善

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2659 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-06-17 12:38:22 +00:00
parent 3101090b81
commit 0986e27b7f

View File

@ -2978,7 +2978,7 @@ TreeStyleTabBrowser.prototype = {
else else
x += this.splitterWidth; x += this.splitterWidth;
w -= offset; w -= offset;
} }
ctx.globalAlpha = 1; ctx.globalAlpha = 1;
if (pos == 'left' || pos == 'right') { if (pos == 'left' || pos == 'right') {
ctx.fillStyle = this.splitterBorderColor; ctx.fillStyle = this.splitterBorderColor;
@ -2986,14 +2986,21 @@ TreeStyleTabBrowser.prototype = {
} }
ctx.save(); ctx.save();
ctx.scale(zoom, zoom); ctx.scale(zoom, zoom);
ctx.drawWindow(frame, x+frame.scrollX, y+frame.scrollY, w / zoom, h / zoom, '-moz-field'); ctx.drawWindow(
frame,
(x / zoom)+frame.scrollX,
(y / zoom)+frame.scrollY,
w / zoom,
h / zoom,
'-moz-field'
);
ctx.restore(); ctx.restore();
if (this.mTabBrowser.getAttribute(this.kTRANSPARENT) != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_FULL]) { if (this.mTabBrowser.getAttribute(this.kTRANSPARENT) != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_FULL]) {
var alpha = Number(this.getTreePref('tabbar.transparent.partialTransparency')); var alpha = Number(this.getTreePref('tabbar.transparent.partialTransparency'));
if (isNaN(alpha)) alpha = 0.25; if (isNaN(alpha)) alpha = 0.25;
ctx.globalAlpha = alpha; ctx.globalAlpha = alpha;
ctx.fillStyle = 'black'; ctx.fillStyle = 'black';
ctx.fillRect(0, 0, w, h); ctx.fillRect(0, 0, w, h);
} }
ctx.restore(); ctx.restore();
}, },