Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Maximizing browser extends into second monitor #5159

Closed
ETapia1 opened this issue Oct 26, 2016 · 12 comments · Fixed by brave/muon#191
Closed

Maximizing browser extends into second monitor #5159

ETapia1 opened this issue Oct 26, 2016 · 12 comments · Fixed by brave/muon#191

Comments

@ETapia1
Copy link

ETapia1 commented Oct 26, 2016

Test plan

  1. Have a dual monitor Windows setup
  2. Open Brave and maximize it on one of the windows
  3. There shouldn't be any border from Brave.exe on the other monitor (see below picture)

Original issue description

Did you search for similar issues before submitting this one?
yes
Describe the issue you encountered:
when I click the maximize button (by the close button not f11) the browser over-extends on to my second monitor. I can hover over the excess pixels and it gives me the option to stretch the window (double sided arrows) but it won't expand because it's already maximized on my main monitor. I've already reinstalled my OS. The issued still persists. Now there is also an issue when I go full screen on a video. It creates an annoying blue border around the video. this didn't happen before so I'm not sure if it's a related issue.
Expected behavior:
Maximize window without overlapping onto my second monitor.

@Superbest
Copy link

I also get this with Windows 7. I believe it's been happening at least for 3 weeks now. It wasn't an issue more than 2 months ago, I think either version 0.8 or 0.9 was the last one without this issue.

@andrewcole50
Copy link

Happens to me to. Whichever side I maximize Brave on It extends ~5-10 pixels over to the next screen. Oddly enough pressing F11 produces a properly maximized window but the maximize button or dragging the window to the top of the screen produces the bug.

Windows 10 x64

@Superbest
Copy link

Some weird observations:

  1. It bleeds from horizontal right monitor (main screen) to the vertical left monitor (second screen), but not from left monitor to right monitor.
  2. Once it bleeds, I can minimize and restore the window and the bleed is removed.
  3. When the bleed is removed, I can restore and re-maximize the window and it bleeds again.

This is on Brave 0.12.10 by the way.

@bsclifton
Copy link
Member

With the recent updates in 0.13.0, we should retest this 😄 It may very well be fixed now (if not, I have some good ideas for fixes)

@bsclifton bsclifton self-assigned this Jan 16, 2017
@bsclifton
Copy link
Member

bsclifton commented Jan 16, 2017

This issue is definitely Windows only; here's an article describing the history behind why Windows behaves like this for maximized windows:
https://blogs.msdn.microsoft.com/oldnewthing/20120326-00/?p=8003

The potential fix would be in brave/muon. We could force the window to stay within the bounds of the monitor by handling the WM_GETMINMAXINFO event and changing the dimensions there.

@bsclifton
Copy link
Member

+1 from user @benjaminsuch via #7997

@bsclifton bsclifton added this to the 0.14.3 milestone Apr 11, 2017
@bsclifton bsclifton modified the milestones: 1.0.0, 0.15.1 Apr 18, 2017
@lukemulks
Copy link
Collaborator

We've had a Brave Community contributor report a ~1-3px overlap between monitors when Brave is maximized in a primary display, when there are two displays sitting side by side.

URL to Brave Community thread:
https://community.brave.com/t/youtube-skip-ad-button-disappeared-brave-window-overlaps-other-screen/2329/8

Browser profile for user:

Brave: 0.15.0 
rev: 71fb73001617949528cc6473e288a49e76fcd4d5 
Muon: 2.58.7 
libchromiumcontent: 58.0.3029.81 
V8: 5.8.283.32 
Node.js: 7.9.0 
Update Channel: dev 
os.platform: win32 
os.release: 10.0.15063 
os.arch: x64

Screenshots provided by our contributor:

brave-windows-maximized-overlap-04282017-1

brave-windows-maximized-overlap-04282017-2

bsclifton added a commit to brave/muon that referenced this issue May 5, 2017
- manually applied: electron/electron@638eae1
- manually applied: https://github.com/electron/electron/pull/9167/files

Passes the correct subsystem variable to linker. Before, older Windows version
was being used which affected GetSystemMetrics (wrong values returned)

Should fix brave/browser-laptop#7641
Should fix brave/browser-laptop#7215
Might fix brave/browser-laptop#5159

Auditors: @bbondy, @bridiver
bsclifton added a commit to brave/muon that referenced this issue May 5, 2017
- manually applied: electron/electron@638eae1
- manually applied: https://github.com/electron/electron/pull/9167/files

Passes the correct subsystem variable to linker. Before, older Windows version
was being used which affected GetSystemMetrics (wrong values returned)

Should fix brave/browser-laptop#7641
Should fix brave/browser-laptop#7215
Might fix brave/browser-laptop#5159

Auditors: @bbondy, @bridiver
@luixxiul luixxiul modified the milestones: 0.15.3, 1.0.0 May 5, 2017
@bsclifton
Copy link
Member

bsclifton commented May 5, 2017

@alexwykoff I think you said you may have a way to test multiple monitors... It may not be fixed, but worth a retest for sure

@bsclifton
Copy link
Member

If this fails QA, let's re-open and remove the milestone 😄

@bsclifton
Copy link
Member

Re-opening and unassigning milestone. Per @jonathansampson:

A maximized window on second monitor bleeds a few pixels over into the first monitor.
Similarly, a maximized window on the first monitor bleeds a couple pixels over into the second monitor.

@bsclifton bsclifton reopened this May 24, 2017
@bsclifton bsclifton removed this from the 0.15.300 milestone May 24, 2017
@luixxiul luixxiul added this to the 0.16.200 milestone May 25, 2017
@jonathansampson
Copy link
Collaborator

@bsclifton Just downloaded fc4b892, and this issue no longer repros for me.

@bsclifton
Copy link
Member

@jonathansampson awesome! thanks for the report 😄 In that case, I'll re-close and move back to 0.15.300

@bsclifton bsclifton modified the milestones: 0.15.300, 0.16.200 May 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.