Is is possible to specify min “browser window” siz...
# compose-web
g
Is is possible to specify min “browser window” size (more in thread)?
So this:
Copy code
Box(
    Modifier
        .fillMaxSize()
        .requiredSize(DpSize(400.dp, 800.dp))
        .background(Color.LightGray)
) {}
Makes sure my
Box
content doesn’t get “pushed around”:
Screen Recording 2024-02-19 at 14.52.59.mov
but regarding the window, is it possible to specify such restrictions? For the width it appears to be respected (but if I make it bigger it doesn’t), I’m using
400.dp
just to simulate a “visible window restriction”. I don’t have experience in developing for web/browser, so maybe even this restrictions aren’t possible outside compose-multiplatform. It’s just a curiosity.
d
As I correctly understand - this is browser limitations
a
It is also “protection” of end user. Imagine if advertisers force minimum browser sizes…..
g
Makes sense