Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Application doesn't support proportionality resolution
Application doesn't support proportionality resolution. ie, small resolution screen shows half of the application.
please anybody help me.....
Make a smaller application?
I think you should provide a code sample of what you're talking about. It's certainly possible to create a Vaadin UI that fits on a small screen. You can set explicit widths on all components so that they don't expand too much. I recommend not specifying sizes in pixels, but in 'em' units so that things line up well if users set lower/higher default text sizes in their browsers.
Cheers,
Bobby
public class MyWindow extends Window {
public MyWindow() {
setContent(buildWindow());
}
private VerticalLayout buildWindow() {
VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
VerticalLayout windowLayout = new VerticalLayout();
windowLayout.setWidth("1000px");
windowLayout.setHeight("650px");
VerticalLayout centerPage = buildPage();
windowLayout.addComponent(centerPage);
windowLayout.setComponentAlignment(centerPage, Alignment.TOP_CENTER);
layout.addComponent(windowLayout);
layout.setComponentAlignment(windowLayout, Alignment.TOP_CENTER);
return layout;
}
}
Here, I reduce the size of browser (width and height) the windowLayout's content not fully display or/and didn't present vertical or horizontal scrollbar.
I wants any resolution the display actual size of windowLayout and align in top center of the window.
Please help me.....
Replace
windowLayout.setWidth("1000px");
windowLayout.setHeight("650px");
With
windowLayout.setWidth("100%");
windowLayout.setHeight("100%");
Or
windowLayout.setSizeFull();
To let the layout use all available space and not force it to 1000px per 650px