Limiting screen width of a page or entire app

0
Hi, I want to limit the window's resizing width when user try to resize their browser screen to a certain width like if they try to resize to 700px width, it won't go lower than 700px. How to achieve this ? Thank you in advance !
asked
2 answers
2

Hi Phutharin,

I'm not sure if this can work, you can try the method Jason is suggesting another solution might be a jQuery snippet that detects a window.resize: 

$(window).resize(function(){
    if ($(window).width() <= 700) {
       window.resizeTo(700,$(window).height());
    }
});

Hope this helps.

Edit: Link to HTML/JavaScript snippet: https://appstore.home.mendix.com/link/app/56/Mendix/HTML/-JavaScript-Snippet

Cheers,

Jeffrey

answered
1

If I understand your question you want to make your content not resize smaller then 700px;

think you'd want to do this with css.

min-width: 700px;

 

answered