mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
Make sure popups don't stretch layout
This commit is contained in:
@@ -1380,7 +1380,7 @@
|
||||
(offset.top < room * 2/3 || offset.top + 200 < room)) {
|
||||
$el.css('top', offset.top);
|
||||
} else {
|
||||
$el.css('bottom', room - offset.top - sourceHeight);
|
||||
$el.css('bottom', Math.max(room - offset.top - sourceHeight, 0));
|
||||
}
|
||||
$el.css('left', offset.left + this.sourceEl.outerWidth());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user