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.
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
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.
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