Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Selecting label with touchkit
I'm currently using Vaadin Touchkit to create a mobile app. My problem is that I'm working with TabSheet object and, when I had some labels in it, I cannot select them (to copy/paste, for example) with my mobile device. Unfortunately, I really need the "feature" of selecting the text and don't understand why it does not work.
I think that the problem comes from the tabsheet because when adding labels without it, it works perfectly. With the tabsheet, my iPad only "zoom" on the label (with the magnifying glass).
Here is an example code to explain a little more my issue :
VerticalLayout view = new VerticalLayout(); view.setSizeFull(); HorizontalLayout layout = new HorizontalLayout(); layout.setSizeFull(); HorizontalLayout layout2 = new HorizontalLayout(); layout2.setSizeFull(); /* First label, not in the Tabsheet : I can select this one on mobile device */ Label label = new Label("Hi everyone"); layout2.addComponent(label); view.addComponent(layout2); Label label2 = new Label("Label 2"); layout.addComponent(label2); /* I cannot select the two labels on the tabsheet */ TabSheet tabs = new TabSheet(); tabs.addTab(layout, "Labels"); tabs.addTab(new Label("Other label"), "Other label"); view.addComponent(tabs); this.setContent(view);
thanks a lot