fix: adjust window size in NCCALCSIZE instead of adding insets (#19883)
This commit is contained in:
parent
080fdb3817
commit
f6c523db13
3 changed files with 28 additions and 37 deletions
|
@ -40,8 +40,6 @@ class RootView : public views::View {
|
|||
// Register/Unregister accelerators supported by the menu model.
|
||||
void RegisterAcceleratorsWithFocusManager(AtomMenuModel* menu_model);
|
||||
void UnregisterAcceleratorsWithFocusManager();
|
||||
void SetInsets(const gfx::Insets& insets);
|
||||
gfx::Insets insets() const { return insets_; }
|
||||
|
||||
// views::View:
|
||||
void Layout() override;
|
||||
|
@ -59,8 +57,6 @@ class RootView : public views::View {
|
|||
bool menu_bar_visible_ = false;
|
||||
bool menu_bar_alt_pressed_ = false;
|
||||
|
||||
gfx::Insets insets_;
|
||||
|
||||
// Map from accelerator to menu item's command id.
|
||||
accelerator_util::AcceleratorTable accelerator_table_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue