How to change the size of the GPS map for iPhone?

  • Nattster
    Asked on February 9, 2015 at 8:43 PM

    Hi, I am trying to shrink the size of the GPS map and the esignature block as they both are too big for the iPhone view. Is there a way that I can do that?

  • Charlie
    Replied on February 9, 2015 at 10:42 PM

    Hi,

    I assume that the form you are referring to is the one named "Safety Inspection - Hazard Assessment Form"? If that is correct, you could try using this custom CSS code, you'll need to add it in your Form Designer under CSS tab.

    @media screen and (max-width: 350px){

      #customFieldFrame_8 {

        width : 290px !important;

      } 

      #id_47 {

        width: 290px !important;  

      }

    }

    #customFieldFrame_8 is the GPS widget, you can adjust the width and height there. The #id_47 is the element for the e-signature, you can also adjust the width of it.

    Basically, what this code is doing is that if the device width display is no more than 350px, which is we assume the minimum size for the mobile display, we will then change the widths of the widget GPS and e-signature.

    To add the custom CSS code, here's the screenshot:

    14235396852015 02 10 11 38 14 Screenshot 10

     

    You can also preview the form in different mobile display by clicking the "Preview" button found in the form Designer.

    I hope this helps.

    Thank you.

  • Nattster
    Replied on February 9, 2015 at 11:42 PM

    Thank you that worked perfectly for the map but the esignature is still too large in width. Is there anything else that we can do?

  • Welvin Support Team Lead
    Replied on February 10, 2015 at 7:49 AM

    Try adding the following custom CSS codes:

    @media screen and (max-width: 350px){

    div#signature_pad_47 {

    width: 290px !important;

    height: auto !important;

    }

    .signature-line.signature-wrapper {

    width: 290px !important;

    height: auto !important;

    }

    canvas.jSignature {

    width: 290px !important;

    }

    }

    You can adjust the value until you'll get the desired width. Let us know the result.

    Thanks