Prevent Window Resize

Ronald Franco shared this question 3 years ago
Answered

Is there a way to prevent the window from resizing after it gets to a certain width? I am working on a web prototype and has adaptive layouts for different screen sizes. One that accounts for mobile screens; however, I do not want the screen to get any smaller than 395px wide. Is this possible?

Comments (3)

photo
1

Hi Ronald,


You can create a condition that takes the window width into account, such as


window width>395. If this condition is then not accomplished, the prototype won't resize.


Best,


Lidia

photo
1

The prototype itself won't resize but the window still will. So you can make the window width smaller than the prototype width and it will just cut off part of the prototype. My aim is prevent the window from resizing once it reaches a certain amount of pixels so that there is no way the prototype can be cut off due to it not fitting.

photo
1

Hi Ronald,


From Justinmind, there is no way to lock the browser window from resizing. Try to look to the browser settings and see if there is any parameter that could let you achieve this behaviour.


Best,


Lidia