fix #9 Use Gesture Recognizer to dismiss menu
improve computation of the maximum menu item width