What bit of magic am I missing in getting the minWidth to be honored. In the example code below I've tried to set the minWidth so that the TileLayout area's width will not shrink smaller than two canvases wide, but have not had any luck in getting that to happen. Seems like the minWidth in my test is not being honored at all.
In general, what I am trying to do, is set the minWidth of the app. If the user resizes their browser smaller than the minWidth, the layout should stop resizing, and the browser scrollbars should appear (don't really wan't div scrollbars if at all possible).
In general, what I am trying to do, is set the minWidth of the app. If the user resizes their browser smaller than the minWidth, the layout should stop resizing, and the browser scrollbars should appear (don't really wan't div scrollbars if at all possible).
Code:
isc.Page.setEvent('load',function(){ isc.VLayout.create({ autoDraw: true, overflow: "visible", width: "98%", height: "98%", minWidth: 800, layoutMargin: 10, defaultLayoutAlign: "center", members: [ isc.Label.create({ valign:'center', wrap:true, width:"98%", height: 50, contents:'<span style="font-size:2.0em;font-weight:bold;color:blue;">Fluid Layout Test</span>' }), isc.TileLayout.create({ layoutPolicy: "flow", align: "center", overflow: "visible", autoWrapLines: true, showEdges: true, width: "83%", height: "75%", tiles: [ isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}), isc.Canvas.create({width:300,height:300,edgeSize:1,showEdges:true}) ] }), isc.Label.create({ valign:'top', topMargin: 25, wrap:true, width:"98%", height: "*", contents:'<span>Footer here</span>' }) ] }); });
Comment