diff --git a/frameworks/core/components/tab_bar/render_tab_bar.cpp b/frameworks/core/components/tab_bar/render_tab_bar.cpp index 43fe7786..8c963aa6 100644 --- a/frameworks/core/components/tab_bar/render_tab_bar.cpp +++ b/frameworks/core/components/tab_bar/render_tab_bar.cpp @@ -570,7 +570,8 @@ Offset RenderTabBar::MakeIndicatorOffset(const RefPtr& item) const indicator_->GetLayoutSize(), Alignment::CENTER); } if (indicatorStyle_ == TabBarIndicatorStyle::DEFAULT && - (!onFocused_ || SystemProperties::GetDeviceType() == DeviceType::PHONE)) { + (!onFocused_ || SystemProperties::GetDeviceType() == DeviceType::PHONE || + SystemProperties::GetDeviceType() == DeviceType::TABLET)) { Size childSize = GetTabItemChildLayoutSize(item); offset += Offset(0.0, childSize.Height() / DOUBLE_FACTOR) + indicatorPadding_.GetOffsetInPx(context->GetDipScale());