Skip to content

Commit

Permalink
Fix View translations in Android
Browse files Browse the repository at this point in the history
Summary: Fixes regression in bf59864

Closes #3773
Closes #3954

Reviewed By: svcscm

Differential Revision: D2631180

Pulled By: kmagiera

fb-gh-sync-id: 09a1a2e48fd6fff37d1491c120a28221cdc1b163
  • Loading branch information
dgladkov authored and facebook-github-bot-9 committed Nov 9, 2015
1 parent 714d452 commit b12117a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ public void setScaleY(T view, float scaleY) {
@Deprecated
@ReactProp(name = PROP_TRANSLATE_X, defaultFloat = 1f)
public void setTranslateX(T view, float translateX) {
view.setTranslationX(translateX);
view.setTranslationX(PixelUtil.toPixelFromDIP(translateX));
}

@Deprecated
@ReactProp(name = PROP_TRANSLATE_Y, defaultFloat = 1f)
public void setTranslateY(T view, float translateY) {
view.setTranslationY(translateY);
view.setTranslationY(PixelUtil.toPixelFromDIP(translateY));
}

@ReactProp(name = PROP_ACCESSIBILITY_LIVE_REGION)
Expand Down

0 comments on commit b12117a

Please sign in to comment.