Hello vaadin users,
I recently have some trouble using the panel class and I need your help.
I have the following code :
ThemeResource file = new ThemeResource("sample.html");
Embedded emb = new Embedded("", file);
emb.setType(Embedded.TYPE_BROWSER);
emb.setWidth("300px");
emb.setHeight("300px");
emb.setSizeUndefined();
panel.setContent(emb);
panel.setScrollTop(100);
addComponent(panel); // add it to a verticalLayout
panel.setHeight(700, Unit.PIXELS);
Could you please tell me why the method panel.setScrollTop(100) doesn’t have any effect?
I tried the vaadin book sample with an image and it worked fine.
Thank you for your help,
regards,