PopupDateField width in Runo Theme

Hi,

setting the width of a PopupDateField doesn´t have any effect using the Runo theme. It seems to work perfectly with Reindeer.

Is it a bug, or am I supposed to do this kind of sizing in CSS?

Thanks,
Stefan

Hi,

The same occurs In the Chameleon theme if is inside a VerticalLayout. But if is inside an AbsoluteLayout , it cut the component instead of adjust the size.

Just try this test to see how is rendered.

@Theme(“chameleon”)
public class TestUI extends UI {
@Override
public void init(VaadinRequest request) {
VerticalLayout v = new VerticalLayout();
setContent(v);
Label label = new Label(“Hello Vaadin user”);
v.addComponent(label);
AbsoluteLayout a = new AbsoluteLayout();
a.setWidth(300, Unit.PIXELS);
a.setHeight(300, Unit.PIXELS);
DateField d1 = new DateField();
d1.setWidth(90, Unit.PIXELS);
v.addComponent(d1);
PopupDateField d2 = new PopupDateField();
d2.setWidth(90, Unit.PIXELS);
a.addComponent(d2, “top:40.0px;left:20.0px;”);
v.addComponent(a);
}
}

I´ve created
Ticket 10485
for this.