Screen resolution app

app-user

Member
Hello!

How to solve the problem of a fixed application size and different screen resolutions for users.

For example, with a fixed window size Width: 350 and Height: 550 on 1920x1080, everything is displayed correctly, but if you open the application on a computer with a screen resolution of 3840x2160, then using it will simply be impossible.
 
I have always used html5 template to solve app resolution:

For example, here is a max-wdith (tap run after loading link): https://syncfiddle.net/fiddle/-OR8cDlp7-kuPXwzquGZ

Another example: https://syncfiddle.net/fiddle/-OR8dbO7WxszWM2arEdN

Another: https://syncfiddle.net/fiddle/-OR8e3NMo4KNyKz0_f5X

And on e last: https://syncfiddle.net/fiddle/-OR8eN_ByHnqLV9Bs8_F

There are many html5 themes at: https://html5up.net/

Hope this helps you in some way. I have used this method on many apps over the years.
 
Will this code increase the application window itself? I have a block on changing the application resolution by the user and the problem is not in html and php but that the application itself on the 4K monitor displays very small and because of the ban on changing the size it is impossible to correct it.

Example 4K https://ibb.co/607pxvGb
 
Last edited:
Totally misunderstood what you were saying (long weekend). I noticed in your screenshot that you have not checked the "Allow end users to resize window", think you need to enable that and experiment with other related settings.

I have only experimented with 4k and used code like below. Been mixed results. Have had better results opening a popup window from main app and using the code within the popup:


Remember the above code is only a simple solution and will need some extra work.

Maybe @gdgsoft has a better solution.
 
Will this code increase the application window itself? I have a block on changing the application resolution by the user and the problem is not in html and php but that the application itself on the 4K monitor displays very small and because of the ban on changing the size it is impossible to correct it.
Do you mean your PHP app or ExeOutput for PHP itself?
Because PHP apps automatically resize themselves on large DPI screens. Please try to enable the option "Allow end users to resize the window".
 
In the PHP app, if a resolution is specified and resizing of the window is disabled, everything works correctly on Full HD, but on 4K monitors the application appears small — and the issue is not with the HTML template.
 
Back
Top