Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Ensure that viewWillAppear can always compute CSS properties #4

Open
jsmecham opened this issue Apr 6, 2011 · 0 comments
Open

Ensure that viewWillAppear can always compute CSS properties #4

jsmecham opened this issue Apr 6, 2011 · 0 comments

Comments

@jsmecham
Copy link
Contributor

jsmecham commented Apr 6, 2011

There are times when addSubview is called on a view that is not currently in the DOM, making it impossible to perform layout or calculate CSS on the view in viewWillAppear or viewDidAppear.

We need to be aware of the cases where addSubview will not actually be adding the view to the DOM just yet and not call the callbacks until the view is added to the DOM.

For an example of where this condition exists, take a look at Aphid.UI.ListView. The ListViewItems are added to the ListView instance before the ListView is added to the DOM.

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

No branches or pull requests

1 participant