how to auto set the width of a widget in VerticalPanel

378 views
Skip to first unread message

vaibhav jain

unread,
Feb 16, 2012, 10:02:46 AM2/16/12
to google-we...@googlegroups.com

Hi All,

         how to auto set the width of a widget in VerticalPanel??

I used:

setCellWidth(Mywidget,"100%");

but its not working,i also tried below:

setCellWidth(Mywidget, Window.getClientWidth()+"");
but its not giving proper result.


Regards,
VJ

Brandon Donnelson

unread,
Feb 19, 2012, 11:22:53 PM2/19/12
to google-we...@googlegroups.com
It should be verticalPanel.setWidth("100%"); But check to see if all the parent widgets are 100% too. Maybe you're trying to use another widget?

I'll set a borders on the widgets to see what is going. verticalPanel.addStyleName("test1"); and .test { border:1px solid #FF0000}

Hope that helps,
Brandon Donnelson
Reply all
Reply to author
Forward
0 new messages