Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • 12.0p canEdit:false DynamicForm with readOnlyDisplayAppearance:"static" and print preview

    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":
    • 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)
    Click image for larger version

Name:	Print_Preview_canEditFalse_Static.png
Views:	1
Size:	16.4 KB
ID:	258885



    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)
    Click image for larger version

Name:	Print_Preview_canEdit.png
Views:	1
Size:	20.7 KB
ID:	258886

    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]
    });

  • #2
    Hi Blama
    Thanks for the test case here and the series of issue reports.
    This is just a quick follow up to let you know we are working on these. We'll follow up once we have some resolutions in place

    Regards
    Isomorphic Software

    Comment

    Working...
    X