Skip to content

Commit

Permalink
fix: devtools not resizable on Windows (#30847)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Sep 6, 2021
1 parent cffc1a2 commit 1bdd60e
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -43,8 +43,6 @@ class DevToolsWindowDelegate : public views::ClientView,

// views::WidgetDelegate:
views::View* GetInitiallyFocusedView() override { return view_; }
bool CanMaximize() const override { return true; }
bool CanMinimize() const override { return true; }
std::u16string GetWindowTitle() const override { return shell_->GetTitle(); }
ui::ImageModel GetWindowAppIcon() override { return GetWindowIcon(); }
ui::ImageModel GetWindowIcon() override { return icon_; }
Expand Down Expand Up @@ -193,6 +191,7 @@ void InspectableWebContentsViewViews::SetIsDocked(bool docked, bool activate) {

devtools_window_->Init(std::move(params));
devtools_window_->UpdateWindowIcon();
devtools_window_->widget_delegate()->SetHasWindowSizeControls(true);
}

ShowDevTools(activate);
Expand Down

0 comments on commit 1bdd60e

Please sign in to comment.