I have made the simple application with Vaadin Starter
I have add custom loading indicator according to Vaadin documentation
I have try several Vaadin Flow versions from 24.5.4-24.5.8 to 24.6.0 and there are identical problem with unnecessary scroll bar:
How to remove this scroll bar?
The scroll bar appears when default theme is disabled:
public class Application implements AppShellConfigurator, VaadinServiceInitListener {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Override
public void serviceInit(ServiceInitEvent event) {
event.getSource().addUIInitListener(uiInitEvent -> {
LoadingIndicatorConfiguration conf = uiInitEvent.getUI().getLoadingIndicatorConfiguration();
// disable default theme -> loading indicator isn't shown
conf.setApplyDefaultTheme(false); // HERE
});
}
}