DescriptionNot to show context menu if there are no visible items to show.
This patch prevents the item-less context menu from being visible. In cr.ui.menu, some menu items may be made hidden by Command.canExecute(). Even if all the menu items were hidden, the menu could be shown and the only the border was visible to user.
BUG=none
TEST=manual
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216241
Patch Set 1 #Patch Set 2 : remove a debug comment #
Total comments: 2
Patch Set 3 : addressed comment #
Total comments: 4
Patch Set 4 : addressed comment #Messages
Total messages: 7 (0 generated)
|