・タブのアイコンの表示位置がおかしくなる問題を修正
・タブバーの表示位置の動的な変更ができなくなっていたのを修正 git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1519 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
fa8d830d9a
commit
108ee961cd
@ -827,7 +827,7 @@ catch(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var nodes = document.getAnonymousNodes(aTab);
|
var nodes = document.getAnonymousNodes(aTab);
|
||||||
for (var i = 0, maxi = nodes.length; i < maxi; i++)
|
for (var i = nodes.length-1; i > -1; i--)
|
||||||
{
|
{
|
||||||
nodes[i].setAttribute('ordinal', (i + 1) * 10);
|
nodes[i].setAttribute('ordinal', (i + 1) * 10);
|
||||||
}
|
}
|
||||||
@ -835,7 +835,7 @@ catch(e) {
|
|||||||
nodes = label.parentNode.childNodes;
|
nodes = label.parentNode.childNodes;
|
||||||
if (this.getTreePref('tabbar.position') == 'right' &&
|
if (this.getTreePref('tabbar.position') == 'right' &&
|
||||||
this.getTreePref('tabbar.invertUI')) {
|
this.getTreePref('tabbar.invertUI')) {
|
||||||
for (var i = 0, maxi = nodes.length; i < maxi; i++)
|
for (var i = nodes.length-1; i > -1; i--)
|
||||||
{
|
{
|
||||||
if (nodes[i].getAttribute('class') == 'informationaltab-thumbnail-container')
|
if (nodes[i].getAttribute('class') == 'informationaltab-thumbnail-container')
|
||||||
continue;
|
continue;
|
||||||
@ -845,7 +845,7 @@ catch(e) {
|
|||||||
close.setAttribute('ordinal', parseInt(label.parentNode.getAttribute('ordinal')) - 5);
|
close.setAttribute('ordinal', parseInt(label.parentNode.getAttribute('ordinal')) - 5);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (var i = 0, maxi = nodes.length; i < maxi; i++)
|
for (var i = nodes.length-1; i > -1; i--)
|
||||||
{
|
{
|
||||||
if (nodes[i].getAttribute('class') == 'informationaltab-thumbnail-container')
|
if (nodes[i].getAttribute('class') == 'informationaltab-thumbnail-container')
|
||||||
continue;
|
continue;
|
||||||
@ -2837,7 +2837,8 @@ TreeStyleTabBrowserObserver.prototype = {
|
|||||||
|
|
||||||
case 'nsPref:changed':
|
case 'nsPref:changed':
|
||||||
var value = TreeStyleTabService.getPref(aData);
|
var value = TreeStyleTabService.getPref(aData);
|
||||||
var tabs = Array.prototype.slice.call(this.mTabBrowser.mTabContainer.childNodes);
|
var tabContainer = this.mTabBrowser.mTabContainer;
|
||||||
|
var tabs = Array.prototype.slice.call(tabContainer.childNodes);
|
||||||
switch (aData)
|
switch (aData)
|
||||||
{
|
{
|
||||||
case 'extensions.treestyletab.tabbar.position':
|
case 'extensions.treestyletab.tabbar.position':
|
||||||
@ -2845,10 +2846,10 @@ TreeStyleTabBrowserObserver.prototype = {
|
|||||||
tabs.forEach(function(aTab) {
|
tabs.forEach(function(aTab) {
|
||||||
aTab.removeAttribute('align');
|
aTab.removeAttribute('align');
|
||||||
aTab.setAttribute('maxwidth', 250);
|
aTab.setAttribute('maxwidth', 250);
|
||||||
aTab.setAttribute('minwidth', container.mTabMinWidth);
|
aTab.setAttribute('minwidth', tabContainer.mTabMinWidth);
|
||||||
aTab.setAttribute('width', '0');
|
aTab.setAttribute('width', '0');
|
||||||
aTab.maxWidth = 250;
|
aTab.maxWidth = 250;
|
||||||
aTab.minWidth = container.mTabMinWidth;
|
aTab.minWidth = tabContainer.mTabMinWidth;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
case 'extensions.treestyletab.tabbar.invertUI':
|
case 'extensions.treestyletab.tabbar.invertUI':
|
||||||
|
Loading…
Reference in New Issue
Block a user