mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Make sure popups are on-screen
This commit is contained in:
@@ -2041,7 +2041,7 @@
|
||||
(offset.top + sourceHeight < room * 2/3 || offset.top + sourceHeight + 200 < room)) {
|
||||
$el.css('top', offset.top + sourceHeight);
|
||||
} else if (height + 5 <= offset.top) {
|
||||
$el.css('bottom', room - offset.top);
|
||||
$el.css('bottom', Math.max(room - offset.top, 0));
|
||||
} else if (height + 10 < room) {
|
||||
$el.css('bottom', 5);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user