Hi Isomorphic,
please see this modified testcase (v12.0p_2019-08-01). As you can see, the print preview has some design flaws, which make the printout look bad.
canEdit:false and readOnlyDisplayAppearance:"static":
canEdit:true:
In general, the width should be always the same for all FormItems in canEdit:true/false-modes in normal mode and print preview.
The first block with the canEdit:false and readOnlyDisplayAppearance:"static" issues is more important to me.
Best regards
Blama
please see this modified testcase (v12.0p_2019-08-01). As you can see, the print preview has some design flaws, which make the printout look bad.
canEdit:false and readOnlyDisplayAppearance:"static":
- Box for "Units" SelectItem displayed
- Font color of "Units" SelectItem (black instead of gray)
- Width of "Units" SelectItem (bit too narrow)
- Width of "Description" TextAreaItem (
- Width of "Next Shipment" DateItem
- Text-align of "Next Shipment" DateItem (might be on purpose)
canEdit:true:
- Width of "Description" TextAreaItem
- 2nd line of "Description" TextAreaItem in some strange position
- Width of "Next Shipment" DateItem
- Width of "Units" SelectItem (bit too narrow)
- Text-align of "Next Shipment" DateItem (might be on purpose)
- pickerIcon of "Units" SelectItem missing
- Font color of "Units" SelectItem (black instead of gray)
- Font size of "Units" SelectItem (too small)
In general, the width should be always the same for all FormItems in canEdit:true/false-modes in normal mode and print preview.
The first block with the canEdit:false and readOnlyDisplayAppearance:"static" issues is more important to me.
Best regards
Blama
Code:
isc.DynamicForm.create({ ID: "dynamicForm", canEdit: false, readOnlyDisplay:"static", dataSource: "supplyItem", width: 800, // pre-fill some values values: { unitCost: -1.234, SKU: "my SKU", units: "Ream", description:"lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum lore ipsum" } }); isc.IButton.create({ ID: "toggleEditButton", title: "Toggle canEdit", click: "dynamicForm.setCanEdit(!dynamicForm.canEdit)" }); isc.IButton.create({ ID:"printBtn", autoDraw: false, title: "Print Preview", click: "isc.Canvas.showPrintPreview(dynamicForm)" }); isc.HStack.create({ ID: "buttons", height: 24, membersMargin: 10, members: [toggleEditButton, printBtn] }); isc.VLayout.create({ width: 800, membersMargin: 10, members: [dynamicForm, buttons] });
Comment