herzbube / littlego

Little Go. An iOS application that lets you play the game of Go on the iPhone or iPad.
https://littlego.herzbube.ch/
Apache License 2.0
138 stars 53 forks source link

Go board not properly centered on iPhones with UITypePhone #367

Closed herzbube closed 2 years ago

herzbube commented 2 years ago

On iPhones with UITypePhone the Go board is currently centered within the wooden background view. This is not correct because it does not take into account how much space is actually used by other views (specifically bar button boxes) that are also visible on top of the wooden background. As a result, the current centering is only approximate.

The approximation is barely noticeable by the user when casually looking at the current layout, but becomes much more pronounced when bar button boxes are made wider (in landscape) or higher (in Portrait) than they currently are.

To fix the centering and make it resilient against future layout changes, the Go board should not be centered within the entire wooden background, but only within that part of it that is not used by other views (currently bar button boxes).