Expose Viewport Dimensions in Perspective
complete
B
Brandon Hughes
This would allow for resizing text based on window size. Currently, resizing a window in a coordinate view causes the text to wrap and become unreadable in some apps.
Log In
Ray Sensenbach
complete
This functionality was released within Ignition v8.1.6.
More details here: https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2021/42410/62
Docs here:
j
jason.israelsen
Regarding resizing text, refer to:
In my experience using a derivative of "vmin" in the fontsize field works well.
M
Matthew Ayre
There is a free module provided by BIJC that implements this: https://modules.bijc.co.uk/
I have tested this and it works well (as long as you consider the possible performance implications)
Here is my original post where I was linked the information: https://forum.inductiveautomation.com/t/feature-16079-perspective-screen-orientation/39672
I take no credit for the module (credit goes to the to BIJC and their employees that kindly offer this component for free)
K
Keith Weerts
Exposing viewport width is useful for so many reasons beyond text resizing. Here is just a short list: 1. adjust tag history point count on the time series chart based on the width. A mobile phone with only 400 px resolution doesn't need as much point count resolution as web browser with 1800 px resolution. 2. use width to determine if an axis or legend should be displayed 3. use width to trim the text length used on a horizontal bar chart. 4 use width to granularly adjust a button width so you don't have to go through the time consuming effort of setting up another Breakpoint View to make a minor fix
N
Nader Chinichian
It also useful when you want overlay object on map with cause them to scale.
If you set coordinate to percent map will be scale which is desirable but also cause other overlays item scale too which is not desirable.
So knowing the Viewport Dimensions make us enable to fix the items size.
j
jason.israelsen
It looks like there is a pretty good solution using media queries. The following is from tech support:
What you can do is create a style with a media query in it. This will allow you to set your font size based on resolution. By default it does it by 300px but of course this is fully configurable and you have the ability to create multiple styles as well. I hope this answers that question. Here is some documentation on media queries and styles https://docs.inductiveautomation.com/display/DOC80/Style+Classes#StyleClasses-MediaQuerySettings