Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: scott5678 on June 17, 2013, 05:32:46 PM

Title: Buttons change size LandScape / Portrait despite PixelPerfect
Post by: scott5678 on June 17, 2013, 05:32:46 PM
Hi, I've read over a bunch of posts, but can't quite figure out how to keep buttons on an iPad app the same physical size in Landscape vs Portrait mode.

I've got auto-rotation on. When I switch from Portrait to Landscape, all the buttons get smaller. I presume they're being scaled by the new, shorter height. It seems to do this whether I have scaling style set to PixelPerfect of FixedSize.

My UI Root (2D) settings:
Manual Height: 1024
Minimum Height: 100
Maximum Height: 1024
Title: Re: Buttons change size LandScape / Portrait despite PixelPerfect
Post by: ArenMook on June 17, 2013, 09:24:16 PM
http://www.tasharen.com/forum/index.php?topic=2397.0
Title: Re: Buttons change size LandScape / Portrait despite PixelPerfect
Post by: scott5678 on June 18, 2013, 09:04:31 AM
My issue didn't have to do with width vs height, but rather the Maximum height setting on the UI Root. Choosing ScalingStyle of PixelPerfect only keeps pixels the same as long as the actual display screen is within the min and max height. Once I changed the Maximum height to 2048 (from 768), the buttons rendered the same size on both portrait and landscape. I forgot to mention earlier that I'm running 2.6.1e.