Fix element inspector

Differential Revision: D2513268

fb-gh-sync-id: c0c91cc96926eb6d222c7cbc8855342e8594a09f
This commit is contained in:
Andrei Coman 2015-10-06 11:36:42 -07:00 committed by facebook-github-bot-6
parent 0de9e0104a
commit a876b234c6
2 changed files with 5 additions and 5 deletions

View File

@ -632,8 +632,8 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
final Callback callback) {
mOperationsQueue.enqueueFindTargetForTouch(
reactTag,
point.getInt(0),
point.getInt(1),
Math.round(PixelUtil.toPixelFromDIP(point.getDouble(0))),
Math.round(PixelUtil.toPixelFromDIP(point.getDouble(1))),
callback);
}

View File

@ -17,8 +17,8 @@ import java.util.ArrayList;
import com.facebook.react.animation.Animation;
import com.facebook.react.animation.AnimationRegistry;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.systrace.Systrace;
import com.facebook.systrace.SystraceMessage;
@ -385,8 +385,8 @@ public class UIViewOperationQueue {
final int touchTargetReactTag = mNativeViewHierarchyManager.findTargetTagForTouch(
mReactTag,
PixelUtil.toPixelFromDIP(mTargetX) + containerX,
PixelUtil.toPixelFromDIP(mTargetY) + containerY);
mTargetX + containerX,
mTargetY + containerY);
try {
mNativeViewHierarchyManager.measure(