This repository was archived by the owner on Sep 1, 2020. It is now read-only.
Commit 212ce3e
Andreas Creten
Correct position of the menu when out of viewport
When a context menu is higher than the place above the coordinates you clicked it would go outside of the viewport at the top of the screen. This PR makes it so that it will appear central in on the screen in that case. If the menu is higher than the viewport it will stick to the top of the screen. Applied the same logic to the horizontal axis.1 parent 6f4f1c6 commit 212ce3e
File tree
1 file changed
+8
-0
lines changed1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
0 commit comments