I am building a mobile app using Vaadin Touchkit 3.0
I have a BrowserFrame which displays a long HTML content in one of my view classes. The scrolling for BrowserFrame works well on android devices but is not working on iOS devices. Below is the piece of code I have used:
FormLayout layout = new FormLayout();
BrowserFrame preview = new BrowserFrame();
preview.setSizeFull();
Resource documentResource = new FileResource(new File(outputFile.getAbsolutePath()));
preview.setSource(documentResource);
layout.addComponent(preview);
setContent(layout);
I got the scrolling working.
I used Label with ContentMode as HTML instead of BrowserFrame to display the HTML. Also, had to ensure that the layout in which Label was added has undefined size.
I tried using the Verge’s site, and the scrollbars appear as expected in Safari and Firefox (desktop). Although scrolling works in Safari, the scrollbar doesn’t move.
On what platform, and which Vaadin version did your problem occur? Would you mind filing a ticket at dev.vaadin.com?