Author Topic: Buttons change size LandScape / Portrait despite PixelPerfect  (Read 2496 times)

scott5678

  • Guest
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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

scott5678

  • Guest
Re: Buttons change size LandScape / Portrait despite PixelPerfect
« Reply #2 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.