Hi,
I'm trying to center a dynamic form in a horizontal layout. I'm not having much luck. Here is the latest version of my code. What am I doing wrong?
Thanks,
-G
I'm trying to center a dynamic form in a horizontal layout. I'm not having much luck. Here is the latest version of my code. What am I doing wrong?
Code:
<SCRIPT> (function () { isc.HLayout.create({ ID: "hLayoutAlignCenter", autoDraw: true, // Specifying the width creates space within which to // center the members. width: "100%", height: "100%", layoutMargin: 6, membersMargin: 6, border: "1px dashed blue", //align: "center", // As promised! members: [ isc.DynamicForm.create({ ID: "loginForm", colWidths: [100, 200], align: "center", //dataSource: "users", useAllDataSourceFields: true, fields: [ {type:"header", defaultValue:"Please login"}, {name: "User Name", required: true}, {name: "password", type: "password", required: true}, {name: "validateBtn", title: "Validate", type: "button", click: "form.validate()"} ], values : { user_name: "Bob", password: "", } }) ] }); })(); </SCRIPT>
-G
Comment