mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-13 02:23:56 +01:00
Windows: Don't apply inset to borderless windows (issue #1195).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1632 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
d9310e2c58
commit
b7ecb963f0
@ -46,6 +46,20 @@ Index: widget.cc
|
||||
native_widget(NULL),
|
||||
desktop_window_tree_host(NULL),
|
||||
top_level(false),
|
||||
@@ -389,7 +391,12 @@
|
||||
Minimize();
|
||||
} else if (params.delegate) {
|
||||
SetContentsView(params.delegate->GetContentsView());
|
||||
- SetInitialBoundsForFramelessWindow(params.bounds);
|
||||
+ if (params.parent_widget) {
|
||||
+ // Set the bounds directly instead of applying an inset.
|
||||
+ SetBounds(params.bounds);
|
||||
+ } else {
|
||||
+ SetInitialBoundsForFramelessWindow(params.bounds);
|
||||
+ }
|
||||
}
|
||||
native_widget_initialized_ = true;
|
||||
}
|
||||
Index: widget.h
|
||||
===================================================================
|
||||
--- widget.h (revision 251746)
|
||||
|
Loading…
Reference in New Issue
Block a user