Skip to content

Commit a630dd3

Browse files
authored
horizontal scroll
The scroll will also shift to the screen after the horizontal scroll
1 parent 6f8d787 commit a630dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ angular.module('ui.bootstrap.contextMenu', [])
347347

348348
var leftCoordinate = event.pageX;
349349
var menuWidth = angular.element($ul[0]).prop('offsetWidth');
350-
var winWidth = event.view.innerWidth;
350+
var winWidth = event.view.innerWidth + window.pageXOffset;
351351
var padding = 5;
352352

353353
if (leftOriented) {

0 commit comments

Comments
 (0)