Index: ui/webui/resources/js/cr/ui/menu_button.js |
=================================================================== |
--- ui/webui/resources/js/cr/ui/menu_button.js (revision 188725) |
+++ ui/webui/resources/js/cr/ui/menu_button.js (working copy) |
@@ -132,6 +132,7 @@ |
e.target.checkable; |
this.hideMenu(hideDelayed ? HideType.DELAYED : HideType.INSTANT); |
break; |
+ case 'scroll': |
case 'resize': |
this.hideMenu(); |
break; |
@@ -164,6 +165,7 @@ |
this.showingEvents_.add(doc, 'keydown', this, true); |
this.showingEvents_.add(doc, 'mousedown', this, true); |
this.showingEvents_.add(doc, 'focus', this, true); |
+ this.showingEvents_.add(doc, 'scroll', this, true); |
this.showingEvents_.add(win, 'resize', this); |
this.showingEvents_.add(this.menu, 'activate', this); |
this.positionMenu_(); |