Skip to content

Commit 3ea3222

Browse files
committed
Fix height
1 parent 88e0ff0 commit 3ea3222

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

packages/test/harness/src/host/common/host/windowSize.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ module.exports = (/** @type import('selenium-webdriver').WebDriver */ webDriver)
44
async function windowSize(width, height, element) {
55
const rect = await webDriver.manage().window().getRect();
66

7-
height = +height || rect.height;
7+
height = +height + ADJUST_WINDOW_SIZE_HEIGHT || rect.height;
88
width = +width || rect.width;
99

10-
await webDriver
11-
.manage()
12-
.window()
13-
.setRect({ height: height + ADJUST_WINDOW_SIZE_HEIGHT, width });
10+
await webDriver.manage().window().setRect({ height, width });
1411

1512
/* istanbul ignore next */
1613
element &&

0 commit comments

Comments
 (0)