From 699c9b9696c700dbc7ca6eefe8f95ed2ec25babd Mon Sep 17 00:00:00 2001 From: iliajie Date: Wed, 10 May 2023 20:24:46 +0300 Subject: [PATCH] Fix to make sure that client height is set on initial load --- useradmin/index.cgi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/useradmin/index.cgi b/useradmin/index.cgi index 85e90716c..75a5a94ef 100755 --- a/useradmin/index.cgi +++ b/useradmin/index.cgi @@ -10,6 +10,13 @@ $pftmsg = &text('index_pft', $text{'index_pft'.$pft} || $pft); $formno = 0; &ReadParse(); + +if ($config{'display_max_auto'} && + !$in{'client_height'} && !$ENV{'HTTP_X_CLIENT_HEIGHT'}) { + print ""; + exit; + } + @quarters = ( "width=25%", "width=25%", "width=25%", "width=25%" ); # Get the user and group lists