diff --git a/Pod/Classes/Shader/DoricViewNode.m b/Pod/Classes/Shader/DoricViewNode.m index f1beff00..8b9d06f4 100644 --- a/Pod/Classes/Shader/DoricViewNode.m +++ b/Pod/Classes/Shader/DoricViewNode.m @@ -317,6 +317,11 @@ - (NSNumber *)getHeight { return @(self.view.height); } +- (NSDictionary *)getLocationOnScreen { + CGPoint point = [self.view convertPoint:CGPointMake(0, 0) toView:[UIApplication sharedApplication].windows.lastObject]; + return @{@"x": @(point.x), @"y": @(point.y)}; +} + - (void)blendLayoutConfig:(NSDictionary *)params { [params[@"widthSpec"] also:^(NSNumber *it) { if (it) {