Hi,
I'm unable to get both of these working together. I have a HLayout with width set to 100%, and I want it to stop reducing in size when the browser window reaches its minWidth value. But it just continues shrinking.
Has anybody got an idea how to solve it? Stand-alone test case follows:
Thanks in advance,
Alan
I'm unable to get both of these working together. I have a HLayout with width set to 100%, and I want it to stop reducing in size when the browser window reaches its minWidth value. But it just continues shrinking.
Has anybody got an idea how to solve it? Stand-alone test case follows:
Thanks in advance,
Alan
Code:
import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; public class Test3 implements EntryPoint { VLayout left, right; public Test3() { } public void onModuleLoad() { left = new VLayout(); left.setWidth("60%"); left.setHeight100(); left.setBorder("2px dashed red"); left.setBackgroundColor("#ccc"); right = new VLayout(); right.setWidth("40%"); right.setHeight100(); right.setBorder("2px dashed red"); right.setBackgroundColor("#aaa"); HLayout t = new HLayout(); t.setWidth100(); t.setHeight100(); //Min-width Doesn't work: t.setMinWidth(1000); t.addMember(left); t.addMember(right); t.setBorder("2px dashed green"); t.setBackgroundColor("white"); t.draw(); } }
Comment