missing scrollbar in panel [only chrome]

Hello,
I’ve tried to turn on horizontal scrollbar in panel if there is no defined height, but it doesn’t work.


Panel p = new Panel();
        window.addComponent(p);
        p.setWidth("100px");
//        p.setHeight("500px"); Uncoment to enable scrollbar
        p.getContent().setSizeUndefined();
        Button b = new Button("aaaaaaaaa");
        b.setSizeUndefined();
        p.addComponent(b);

If I will define this height the scrollbar will be displayed. Am I doing something bad? I don’t wanna to define panel height becauseit is unknown…

Thank you.
PP

Undefined means ‘as much as is needed’ in Vaadin; which means that the Panel will expands as much as its child components, and never scroll. To enable scrolling, the Panels height needs to be constricted.

OK,
but I asked panel for defined width 100px and button is more wide. So it should have horizontal scrollbar nope?
Why should I define height i I don’t know it? I’m not interested in vertical scrollbar.
Thank you

Yes, the Panel should have a horizontal scrollbar in that case. I tested it with Vaadin7 beta8 and it works. What version are you using?

last chrome KO
last 6.8.5 older version doesn’t work to IMHO.
win 8 x64
tomcat 6

FF OK
IE 8, 9, 10 seems to be OK
Thank you
12637.png

Youp, that’s a bug. Thank you for the test code, I’ll create a ticket.


http://dev.vaadin.com/ticket/10255

thx
PP