Skip to content

Commit c1a993c

Browse files
fix(ios-13): remove statusbar height from viewportRect
1 parent 815eca2 commit c1a993c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: lib/appium-driver.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ export class AppiumDriver {
322322
const matches = devicesInfos.filter(d => sessionInfoDetails.deviceName.includes(d.deviceType));
323323
if (matches && matches.length > 0) {
324324
const deviceType = matches[matches.length - 1];
325-
args.device.viewportRect.y += deviceType.actionBarHeight * deviceType.density;
325+
args.device.viewportRect.y += deviceType.actionBarHeight;
326+
args.device.viewportRect.height -= deviceType.actionBarHeight;
326327
}
327328
} catch (error) { }
328329
}

0 commit comments

Comments
 (0)