Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎lib/appium-driver.ts

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /