Problem with a dialog's size on the display

Hi, I have a problem placing a dialog on the display. I wrote a program for processing the Calc table with several dialogs. Dialogues fit comfortably across the entire display. After switching from Linux Mint 17 and LO 6.3 to Linux Mint 20 and LO (the display resolution did not change), the dialogs became much smaller relative to the display and therefore poorly readable. Question 1: why did this happen? Question 2: how to automatically check the situation and set the appropriate dialog size in a macro?