Skip to content

Not to setup when width and height is 0 - #83

Merged
hdodenhof merged 1 commit into
hdodenhof:masterfrom
start141:master
Sep 15, 2015
Merged

Not to setup when width and height is 0#83
hdodenhof merged 1 commit into
hdodenhof:masterfrom
start141:master

Conversation

@start141

Copy link
Copy Markdown
Contributor

No description provided.

@hdodenhof

Copy link
Copy Markdown
Owner

What's the purpose of this?

@start141

Copy link
Copy Markdown
Contributor Author

Because it's always setup getWidth() and getHeight() return 0 first time, in my test.

@start141

Copy link
Copy Markdown
Contributor Author

Next time it will callback onSizeChanged.

@hdodenhof

Copy link
Copy Markdown
Owner

Alright, thanks!

hdodenhof added a commit that referenced this pull request Sep 15, 2015
Hold off setup if the view's bounds aren't known yet
@hdodenhof
hdodenhof merged commit ee01fb4 into hdodenhof:master Sep 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants