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.
Is it possible to pass image size as parameter to a public_view?
-
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 -
Not sure what you mean. Can you be more specific?
-
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 -
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.