mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1111986 - fix bookmarks toolbar items overflow triggering navbar overflow, r=jaws
This commit is contained in:
parent
3f7b53a553
commit
4f66eb5a78
@ -3969,8 +3969,12 @@ OverflowableToolbar.prototype = {
|
||||
},
|
||||
|
||||
onOverflow: function(aEvent) {
|
||||
// The rangeParent check is here because of bug 1111986 and ensuring that
|
||||
// overflow events from the bookmarks toolbar items or similar things that
|
||||
// manage their own overflow don't trigger an overflow on the entire toolbar
|
||||
if (!this._enabled ||
|
||||
(aEvent && aEvent.target != this._toolbar.customizationTarget))
|
||||
(aEvent && aEvent.target != this._toolbar.customizationTarget) ||
|
||||
(aEvent && aEvent.rangeParent))
|
||||
return;
|
||||
|
||||
let child = this._target.lastChild;
|
||||
|
Loading…
Reference in New Issue
Block a user