Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Implementing intrinsicContentSize #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ziewvater
Copy link

-intrinsicContentSize allows for the PTKView to be used properly in auto layout without having to resort to explicit dimension constraints. Currently, centering PTKView without providing a size can result in strange layouts (ultimately due to the fact that the PTKView does not determine its own size by the sizing of its subviews). An example of such a layout can be seen in the following screen shot:
screen shot 2015-02-09 at 11 06 52 am
(Here, the thin, centered grey line is the PTKView)

Implementing -intrinsicContentSize fixes this.

intrinsicContentSize allows for the PTKView to be used properly in auto
layout without having to resort to explicit dimension constraints.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants