Skip to content

Commit

Permalink
fix: devtools not resizable on Windows (#30823)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Sep 6, 2021
1 parent 99c0a72 commit 26f981f
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 26f981f

Please sign in to comment.