Hi,
I’m experiencing various form size issue.
What I’m trying to do is very simple. Have a Window, which is 100% width to fit the browser screen, have a dynamicForm inside it, which must be 100% width too. And inside the form I need e button and text item on one row in proportion - let say 5% - 95%.
Here my code for the form:
isc.DynamicForm.create({
fields : [{
endRow : false,
title : “To:”,
formItemType : “ButtonItem”,
width : “"
}, {
name : “toField”,
showTitle : false,
formItemType : “TextItem”,
width : "”
}],
autoDraw : false,
ID : “composeForm”,
height : “100%”,
width : “100%”,
backgroundColor : “orange”,
colWidths : [“5%”, “95%”],
cellPadding : 0,
itemLayout : “table”,
fixedColWidths : true
});
In the above case 5% should be near 50-60 pixels width on a resolution of 1280px width… but what is coming in my browser is a huge button near 250px. Even if I change the size of the first column to only 1% it does not affect the layout.
Second try, I’m changing: colWidth : [150, “100%”] - Now column sizes are working nice (I can see this in Firebug), but the textField (also tried with button) will never grow above 1001(1000) pixels???
And the third minor issue is that textFields always have width of 1 pixel more. If I set it to 200 - the actual size will be 201, which will cause scroll, but as I said this not of critical importance as the first problem.
I will be glad if you can give me some feedback on this layout issue.
Thanks,
Ivan