Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

FullScreen Scale Amount?

$
0
0

I am looking for a way to determine the scale amount when entering fullScreen. It seems like this should be a n easy one but after a lot of searching I am just not seeing anything.

 

To explain. I have a button that when clicked enters fullscreen mode and scales everything accordingly. My starting stage width is 1024 and after scaling is 1024. All of my content still reads the original widths and heights because obviously a highter parent was the one scaled. I can read the fullScreenWidth wich is obviously the new width. But I can't simply go stage.fullScreenWidth/stage.width because I don't know if the content fit the monitor first by width or height (ok I could by checking the fullScreenWidth against the fullScreenHeight but there should be an easier way). It seems like there should be a really easy window.scale or something to find the how much the content had to scale to fit the screen.

 

Any help?


Viewing all articles
Browse latest Browse all 21156

Trending Articles



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