Index: trunk/extensions/VisualEditor/modules/es/views/es.ContextView.js |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | } else { |
68 | 68 | this.$.addClass( 'es-contextView-position-right' ); |
69 | 69 | } |
70 | | - if ( position.top + this.$menu.height() < $( window ).height() ) { |
| 70 | + if ( position.top + this.$menu.height() < $( window ).height() + $( window ).scrollTop() ) { |
71 | 71 | this.$.addClass( 'es-contextView-position-below' ); |
72 | 72 | } else { |
73 | 73 | this.$.addClass( 'es-contextView-position-above' ); |