Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 97529

change UI layout based on panel size

$
0
0

I am looking for a way to adjust the layout of my UI based on the panel's size. For example, two buttons that are above each other until the window height gets small enough that they need to be next to each other instead.

 

Another example would be a series of buttons that are displayed as a row if the panel is wider than it is tall, or as a column if it is taller than it is wide.

 

Anyone done anything like this, or know if it is possible? As I see it, all I need is a way to read the panel's current size and I can put a function into onResize/onResizing that adjusts the UI layout.


Viewing all articles
Browse latest Browse all 97529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>