Index: trunk/extensions/VisualEditor/modules/es/styles/es.ContextView.css |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | } |
53 | 53 | |
54 | 54 | .es-contextView-position-below .es-menuView { |
55 | | - top: 3px; |
| 55 | + top: 2px; |
56 | 56 | } |
57 | 57 | |
58 | 58 | .es-contextView-panels { |
Index: trunk/extensions/VisualEditor/modules/es/views/es.ContextView.js |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | } |
107 | 107 | $menu.css( 'left', menuLeft ); |
108 | 108 | // Position menu on top or bottom depending on viewport |
109 | | - if ( position.top + menuHeight < windowHeight + windowScrollTop ) { |
| 109 | + if ( position.top + menuHeight + ( menuMargin * 2 ) < windowHeight + windowScrollTop ) { |
110 | 110 | this.$.addClass( 'es-contextView-position-below' ); |
111 | 111 | } else { |
112 | 112 | this.$.addClass( 'es-contextView-position-above' ); |