fix for bug #342845 when dragging a tab over the "all tabs" button, act as if we are dragging over the "scroll down" button r=mconnor

This commit is contained in:
sspitzer@mozilla.org 2007-08-21 22:01:55 -07:00
parent b87dd3fe80
commit 2d95b44434
2 changed files with 7 additions and 3 deletions

View File

@ -1686,7 +1686,9 @@
pixelsToScroll = tabStrip.scrollIncrement * -1;
tabStrip.scrollByPixels(pixelsToScroll);
}
else if (targetAnonid == "scrollbutton-down") {
else if (targetAnonid == "scrollbutton-down" ||
(targetAnonid == "alltabs-button" &&
this.mTabContainer.getAttribute("overflow") == "true")) {
pixelsToScroll = tabStrip.scrollIncrement;
tabStrip.scrollByPixels(pixelsToScroll);
}
@ -2483,7 +2485,8 @@
see bugs #346307 and #346035
-->
<xul:hbox style="position: relative;">
<xul:toolbarbutton class="tabs-alltabs-button" type="menu">
<xul:toolbarbutton class="tabs-alltabs-button" type="menu"
anonid="alltabs-button">
<xul:menupopup class="tabs-alltabs-popup"
anonid="alltabs-popup"
position="after_end"/>

View File

@ -78,7 +78,8 @@
see bugs #346307 and #346035
-->
<xul:hbox style="position: relative;">
<xul:toolbarbutton class="tabs-alltabs-button" type="menu">
<xul:toolbarbutton class="tabs-alltabs-button" type="menu"
anonid="alltabs-button">
<xul:menupopup class="tabs-alltabs-popup"
anonid="alltabs-popup" position="after_end"/>
</xul:toolbarbutton>