mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
views: Use new devtools resizing strategy.
This commit is contained in:
@@ -162,12 +162,9 @@ void InspectableWebContentsViewViews::Layout() {
|
||||
}
|
||||
|
||||
gfx::Size container_size(width(), height());
|
||||
gfx::Rect old_devtools_bounds(devtools_web_view_->bounds());
|
||||
gfx::Rect old_contents_bounds(contents_web_view_->bounds());
|
||||
gfx::Rect new_devtools_bounds;
|
||||
gfx::Rect new_contents_bounds;
|
||||
ApplyDevToolsContentsResizingStrategy(strategy_, container_size,
|
||||
old_devtools_bounds, old_contents_bounds,
|
||||
&new_devtools_bounds, &new_contents_bounds);
|
||||
|
||||
// DevTools cares about the specific position, so we have to compensate RTL
|
||||
|
||||
Reference in New Issue
Block a user