Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Explain how to make responsive for dummies

Marcello Garini
6 years ago Aug 27, 2015 3:52pm
Marcello Garini
6 years ago Aug 28, 2015 7:31am
Joacim Päivärinne
6 years ago Aug 28, 2015 12:24pm
Marcello Garini
6 years ago Aug 28, 2015 12:40pm

Exactly.

Anyway I've found the little sneaky missing piece:

head.appendElement("meta").attr("name", "viewport").attr("content", "width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no")

to be put in a BoostrapListener.
See this article 
https://vaadin.com/forum#!/thread/3993515

This piece is definetly missing in the dashboard demo project you can download (there's the class but not used in the UI setup), but is present in the version online!