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-12027-Convert the width with units properly before setting #3903

Merged
merged 2 commits into from Feb 27, 2013

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Feb 24, 2013

Properly convert the borderwidth to pixels.

Jira ticket
https://jira.appcelerator.org/browse/TIMOB-12027

TiDimension width = TiConvert
.toTiDimension(d.get(TiC.PROPERTY_BORDER_WIDTH), TiDimension.TYPE_WIDTH);
View view = TiApplication.getAppCurrentActivity().getWindow().getDecorView();
borderView.setBorderWidth(width.getAsPixels(view));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we just use the native view here instead of grabbing the decor view?

@ayeung
Copy link
Contributor

ayeung commented Feb 27, 2013

Code reviewed and functionally tested. Request Accepted.

ayeung pushed a commit that referenced this pull request Feb 27, 2013
TIMOB-12027-Convert the width with units properly before setting
@ayeung ayeung merged commit 7d8e670 into tidev:master Feb 27, 2013
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

2 participants