• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Is it possible to pass image size as parameter to a public_view?

    Development general discussion
    2
    5
    4.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gtludwig
      last edited by

      The public view function is a jsp page rendered on the server, but is it possible to re-render it dinamically or pass the result dimensions as parameters to construct the public view jsp?

      Thanks in advance,
      gtludwig

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        Not sure what you mean. Can you be more specific?

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • G
          gtludwig
          last edited by

          Well, I can call a public view like this:

          http://<some-server-ip>:8080/Mango/public_view.htm?viewId=<number>

          The screen size of a public view depends on its background picture size. So if the picture is (I'll exaggerate here) 2560x1980 and my computer has a 12" screen with a max resolution of 1366x768 I'll get scrolling bars.

          I wondered if it would be possible to pass to the Mango instance the screen size (say 800x600), so the public view is rendered to fit a 800x600 screen without having to display the scrolling bars.

          I think this would be particularly interesting considering the viewing size of a number of portable devices.

          I hope this can be done! :)

          Thanks in advance,
          gtludwig

          1 Reply Last reply Reply Quote 0
          • M
            mlohbihler
            last edited by

            I suppose it could be done, but then all of the positions of the components in the view would need to be changed accordingly. I presume also that you would want all components to be scaled in the same way as well.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • First post
              Last post