Hey there, I am currently struggeling with responsiveness in Vaadin.
I copy-pasted the example from
Vaadin docs (after I tryed to get my own stuff working), but always the style for the smallest display width gets enabled to the label.
I am Using vaadin 8.1.7.
My MainUI has the Annotation ‘@Viewport(“width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no”)’ (maybe itll help).
yes now it is setting the background color of the page corresponding to the width range.
Sure Responisveness only affects layouts.
Thats too the reason why it didnt worked on my previous attempt. because i added the style to the panel and not to a layout.
Thx for your help.
P.S.: Going to report that error of the Documentation to Vaadin
I think it can affect non-layout components as well, but the Label in that case probably has undefined width, so trying to use width-range on it won’t work.
Just set it to e.g. width 100% and that should work as well (but it’s probably not what you want layout-wise).