Skip to content

Commit

Permalink
fix: adjust highlighter positions again (appium#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
eglitise authored and shiva-guntoju committed Feb 2, 2024
1 parent 1a163d5 commit 14d2a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/renderer/lib/appium-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default class AppiumClient {
// returned Android height and width can both be affected by UiAutomator2 calculations
// we stick with device dimensions, but swap them depending on detected orientation
// deviceScreenSize value fits portrait mode for phones, but landscape mode for tablets
const [width, height] = deviceScreenSize.split('x');
const [width, height] = deviceScreenSize.split('x').map((param) => parseInt(param, 10));
// check if the orientation for windowSize matches orientation for deviceScreenSize
if (windowSize.height >= windowSize.width === height >= width) {
windowSize.height = height;
Expand Down

0 comments on commit 14d2a27

Please sign in to comment.