Skip to content

Commit

Permalink
Merge pull request #27245 from brave/fix_tab_layout_after_swap_split_tab
Browse files Browse the repository at this point in the history
Fixed tab layout is not updated after swap in vertical tab
  • Loading branch information
simonhong authored Jan 16, 2025
2 parents 9527c67 + fa6cf21 commit f495a34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browser/ui/views/tabs/brave_tab_container.cc
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,10 @@ void BraveTabContainer::OnDidBreakTile(const TabTile& tile) {
SchedulePaint();
}

void BraveTabContainer::OnSwapTabsInTile(const TabTile& tile) {
UpdateTabsBorderInTile(tile);
}

gfx::Rect BraveTabContainer::GetDropBounds(int drop_index,
bool drop_before,
bool drop_in_group,
Expand Down
1 change: 1 addition & 0 deletions browser/ui/views/tabs/brave_tab_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class BraveTabContainer : public TabContainerImpl,
// SplitViewBrowserDataObserver:
void OnTileTabs(const TabTile& tile) override;
void OnDidBreakTile(const TabTile& tile) override;
void OnSwapTabsInTile(const TabTile& tile) override;

private:
class DropArrow : public views::WidgetObserver {
Expand Down

0 comments on commit f495a34

Please sign in to comment.