mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02: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:
@@ -46,6 +46,20 @@ Index: widget.cc
|
|||||||
native_widget(NULL),
|
native_widget(NULL),
|
||||||
desktop_window_tree_host(NULL),
|
desktop_window_tree_host(NULL),
|
||||||
top_level(false),
|
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
|
Index: widget.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- widget.h (revision 251746)
|
--- widget.h (revision 251746)
|
||||||
|
Reference in New Issue
Block a user