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

Re: change UI layout based on panel size

$
0
0

Figured it out!

 

This changes my row of buttons from a column to row based on the window ratio. Finally figured out windowBounds.height and windowBounds.width.

 

myPanel.onResizing = myPanel.onResize = function () {  if (myPanel.windowBounds.height > myPanel.windowBounds.width){       myPanel.grp.cmds.orientation = "column";  } else {       myPanel.grp.cmds.orientation = "row";  }  this.layout.resize();
}

Viewing all articles
Browse latest Browse all 97529

Trending Articles



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