Detect Screen Resolution in Perspective

There are a couple of limitations in Perspective’s implementation of Docked Views right now which prevent us from providing dynamically-sized Docked Views.

  1. Docked View size is not dynamic; you set the size in the GUI configuration panel and that’s the size you get when the Docked View is expanded.
  2. You can not configure the same View to be used more than once on a single side of a primary View.

What you COULD do, which is arguably even more “modern” than Docked Views, is turn your entire View into something more akin to an accordion layout (or wait for the Accordion Component sometime in 8.0.3 or 8.0.4).

It would take some clever placement of components, but if you have a Flex Container with direction set to “row”, and you place multiple Flex Containers within, then you could modify their position.display properties dynamically, resulting in the appearance of an accordion or “flipping page” layout (you just need to make sure you don’t end up in a state where none of the containers which display a handle are visible).

This avenue would play pretty nicely with smaller screens, assuming you manage the grow/shrink correctly.

4 Likes