Skip to content

Commit

Permalink
Disable maximized windows relocation (closes #98) (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyBelym authored and AlexanderMoskovkin committed Oct 21, 2016
1 parent 4a37d97 commit fc4a9f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file modified bin/win/screenshot.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "testcafe-browser-tools",
"version": "1.1.0",
"version": "1.1.1",
"description": "An utility library for performing platform-dependent actions on browsers.",
"homepage": "https://github.com/DevExpress/testcafe-browser-tools",
"bugs": "https://github.com/DevExpress/testcafe-browser-tools/issues",
Expand Down
3 changes: 3 additions & 0 deletions src/natives/screenshot/win/Screenshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ static WindowInfo GetWindowInfo (IntPtr hwnd, string processName) {
}

static void PlaceWindowOnScreen (IntPtr hWnd) {
if (IsZoomed(hWnd))
return;

WindowInfo wi = Utils.GetWindowInfo(hWnd);

int maxVisibleArea = 0;
Expand Down

0 comments on commit fc4a9f0

Please sign in to comment.