Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-5819: Android: Percentage-based views need to be re-drawn on device rotation #575

Merged
merged 3 commits into from Oct 25, 2011

Conversation

ayeung
Copy link
Contributor

@ayeung ayeung commented Oct 22, 2011

http://jira.appcelerator.org/browse/TIMOB-5819

Test cases are in Jira ticket.


// Use the height and width from params if we can. When we switch orientation the child returns the
// value from the previous orientation instead of the current one
int childMeasuredWidth = params.optionWidth != null ? params.optionWidth.getAsPixels(this) : child
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this also account for width: "auto" ?

@nataliehuynh
Copy link
Contributor

Request Accepted:
Tested with Hero 2.1 and Motorola Xoom 3.2.1

@nataliehuynh
Copy link
Contributor

Request Accepted:
Tested with Hero 2.1 and Motorola Xoom 3.2.1
Tested with the test attached to bug and the auto width app provided. Attached the auto width one to bug

@marshall
Copy link
Contributor

Code review accepted

@billdawson
Copy link
Contributor

Code review and functional test accepted.

Tested with HTC Desire (Android 2.2). Used both test cases from the ticket. Also changed those test cases to use windows without tabgroups, and then lightweight windows as well. All performed the same. Also went through several screens of KitchenSink to make sure nothing broken, and ran the ui, ui.controls and android.ui drillbit tests, all successfully.

billdawson added a commit that referenced this pull request Oct 25, 2011
TIMOB-5819: Android: Percentage-based views need to be re-drawn on device rotation
@billdawson billdawson merged commit 6b8a497 into tidev:master Oct 25, 2011
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.

None yet

4 participants