File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,10 +193,10 @@ textAngular.directive("textAngular", [
193
193
scope . reflowPopover = function ( _el ) {
194
194
/* istanbul ignore if: catches only if near bottom of editor */
195
195
if ( scope . displayElements . text [ 0 ] . offsetHeight - 51 > _el [ 0 ] . offsetTop ) {
196
- scope . displayElements . popover . css ( 'top' , _el [ 0 ] . offsetTop + _el [ 0 ] . offsetHeight + 'px' ) ;
196
+ scope . displayElements . popover . css ( 'top' , _el [ 0 ] . offsetTop + _el [ 0 ] . offsetHeight + scope . displayElements . scrollWindow [ 0 ] . scrollTop + 'px' ) ;
197
197
scope . displayElements . popover . removeClass ( 'top' ) . addClass ( 'bottom' ) ;
198
198
} else {
199
- scope . displayElements . popover . css ( 'top' , _el [ 0 ] . offsetTop - 54 + 'px' ) ;
199
+ scope . displayElements . popover . css ( 'top' , _el [ 0 ] . offsetTop - 54 + scope . displayElements . scrollWindow [ 0 ] . scrollTop + 'px' ) ;
200
200
scope . displayElements . popover . removeClass ( 'bottom' ) . addClass ( 'top' ) ;
201
201
}
202
202
var _maxLeft = scope . displayElements . text [ 0 ] . offsetWidth - scope . displayElements . popover [ 0 ] . offsetWidth ;
You can’t perform that action at this time.
0 commit comments