use % instead of vh for max rcm height

This commit is contained in:
Til Schmitter 2026-04-30 23:12:38 +02:00
parent d372b25f85
commit 02e4d57a63

View file

@ -10489,7 +10489,7 @@ var rcm = (function () {
var vw = document.documentElement.clientWidth;
var maxh = Math.min(y, vh / 2);
menu.style.maxHeight = 'calc(100vh - ' + maxh + 'px - 2em)';
menu.style.maxHeight = 'calc(100% - ' + maxh + 'px - 2em)';
if(y > vh / 2){
// low click => menu upwards