]> khamidou — GitHub mirrors - electron.git/commit
Fix calculating min/max size in frameless views
authorEran Tiktin <eran.t@mce-sys.com>
Sat, 3 Oct 2015 19:09:57 +0000 (22:09 +0300)
committerEran Tiktin <eran.t@mce-sys.com>
Sat, 3 Oct 2015 19:09:57 +0000 (22:09 +0300)
commitaea1f8aebb8faf71c2c54c815b72ad9a8c21a88e
treea86ce9e1f9b7008966577cbbe1dde7f81cb416be
parent8c31c7fb593d025ec00259905c9ac8ca856d9cbb
Fix calculating min/max size in frameless views

The minimum and maximum size that frameless windows had used, was
incorrect. It included the border, so when it was called it actually
added that to the size, so window increased in size. The fix makes sure
that the view will use the frameless size.

This fixes #2945 and partially fixes #1806 (it also refers to some other
issues with hidpi which might still exist).
atom/browser/native_window_views.cc
atom/browser/native_window_views.h
atom/browser/ui/views/frameless_view.cc