Announcement

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

    issue with inline icons

    SmartClient Version: SNAPSHOT_v12.1d_2019-04-15/EVAL Deployment (expires 2019.06.14_07.21.11) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

    Chrome and Firefox on OSX

    Please try this test case:

    Code:
    <%@taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>
    
    <HTML>
    <HEAD>
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
        <isomorphic:loadISC skin="Stratus" useDebugModules="true"/>
    </HEAD>
    <BODY>
    <script type="text/javascript">
        isc.Canvas.resizeFonts(3, "styles.css");
        isc.Canvas.resizeControls(10);
        isc.DynamicForm.create({
            backgroundColor:"white",
            border:"1px solid blue",
            autoDraw: true,
            items: [{
                name: "phoneNumber",
                title: "Phone Number",
                wrapTitle: false,
                width: 200,
                icons: [{
                    name: "tel",
                    src: "blank",
                    inlineIconAlign: "right",
                    inline: true,
                    text: "&#x2706;"
                }],
                iconWidth: 16,
                iconHeight: 16,
                keyPressFilter: "[-+(),./#0-9 Xx]"
            }]
        }).show()
    </script>
    </BODY>
    </HTML>
    it's a complete jsp, because I can not reproduce in the showcase.

    You'll obtain this:

    Click image for larger version  Name:	2019-04-16 13.49.07.jpg Views:	1 Size:	3.7 KB ID:	257464

    with these dimensions:
    Click image for larger version  Name:	2019-04-16 13.50.34.jpg Views:	1 Size:	11.7 KB ID:	257465
    Click image for larger version  Name:	2019-04-16 13.51.28.jpg Views:	3 Size:	6.1 KB ID:	257466

    While the correct dimensions in the showcase are:

    Click image for larger version  Name:	2019-04-16 13.53.47.jpg Views:	1 Size:	14.9 KB ID:	257469

    I can see that in the getTextBoxWidth method in ISC_Forms:


    Click image for larger version  Name:	2019-04-16 13.22.16.jpg Views:	1 Size:	29.8 KB ID:	257463

    the basicWidth of 196 is diminished by 19, but I don't know it it's actually here the problem.
    Attached Files

    #2
    You don’t seem to have a DOCTYPE tag so you are in quirks mode, which is no longer possible to support.

    Comment


      #3
      Thank you very much for the heads up, I'm trying the 12.1 release for a new project and I forgot the DOCTYPE.

      Comment


        #4
        Hi Isomorphic,

        I don't know if this is already the case, but perhaps it is a good idea to report this as info or warning in the Developer Console. It's very likely that nowadays users will be using a browser with support for this (IE9+, if I get the forums right). Therefore a warning about being quirks mode should be correct almost always.

        Best regards
        Blama

        Comment

        Working...
        X