diff --git a/browser/ui/views/tabs/brave_tab_container.cc b/browser/ui/views/tabs/brave_tab_container.cc index 154e52a0e022..0e34f6ea4b26 100644 --- a/browser/ui/views/tabs/brave_tab_container.cc +++ b/browser/ui/views/tabs/brave_tab_container.cc @@ -16,6 +16,7 @@ #include "chrome/browser/ui/color/chrome_color_id.h" #include "chrome/browser/ui/layout_constants.h" #include "chrome/browser/ui/tabs/tab_style.h" +#include "chrome/browser/ui/ui_features.h" #include "chrome/browser/ui/views/tabs/tab_drag_controller.h" #include "ui/base/metadata/metadata_impl_macros.h" #include "ui/gfx/canvas.h" @@ -111,7 +112,8 @@ gfx::Size BraveTabContainer::CalculatePreferredSize() const { } const auto slots_bounds = layout_helper_->CalculateIdealBounds( - available_width_callback_.is_null() + available_width_callback_.is_null() || + base::FeatureList::IsEnabled(features::kScrollableTabStrip) ? absl::nullopt : absl::optional(available_width_callback_.Run())); height =