{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/701","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/701/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/701/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/701/events","html_url":"https://github.com/webdriverio/webdriverio/pull/701","id":99705620,"number":701,"title":"setViewportSize should repeat action only if width isn't correct","user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-07T18:43:38Z","updated_at":"2015-08-07T18:51:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/webdriverio/webdriverio/pulls/701","html_url":"https://github.com/webdriverio/webdriverio/pull/701","diff_url":"https://github.com/webdriverio/webdriverio/pull/701.diff","patch_url":"https://github.com/webdriverio/webdriverio/pull/701.patch"},"body":"#700 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/128794119","html_url":"https://github.com/webdriverio/webdriverio/pull/701#issuecomment-128794119","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/701","id":128794119,"user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T18:51:27Z","updated_at":"2015-08-07T18:51:27Z","body":"Just to better explain to motivation for this. I have noticed several times that the `width` may be wrong when repeating the `windowHandleSize`\r\n\r\nFor example, the final result's width was 400, where 640 was requested:\r\n\r\n```\r\nResult:\r\n{ screenWidth: 400, screenHeight: 674 }\r\nSize:\r\n{ width: 640, height: 697 }\r\n```"}}