タブバーの内容があふれたかどうかのイベントの監視タイミングを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6624 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-04-30 03:48:07 +00:00
parent cc02c1eeb6
commit c7b0fb5f3e

View File

@ -217,6 +217,9 @@ TreeStyleTabBrowser.prototype = {
if (this.isFloating)
window.addEventListener('resize', this, true);
this.scrollBox.addEventListener('overflow', this, true);
this.scrollBox.addEventListener('underflow', this, true);
window.addEventListener('TreeStyleTabPrintPreviewEntered', this, false);
window.addEventListener('TreeStyleTabPrintPreviewExited', this, false);
@ -1260,8 +1263,6 @@ TreeStyleTabBrowser.prototype = {
container.removeAttribute('overflow');
var scrollBox = this.scrollBox;
scrollBox.addEventListener('overflow', this, true);
scrollBox.addEventListener('underflow', this, true);
window.setTimeout(function() {
scrollBox = document.getAnonymousElementByAttribute(scrollBox, 'anonid', 'scrollbox');
if (scrollBox) scrollBox = document.getAnonymousNodes(scrollBox)[0];