File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
WooCommerce/Classes/ViewRelated/Dashboard/Stats v4 Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,8 @@ private extension StoreStatsV4PeriodViewController {
279279 timeRangeBarView. backgroundColor = . systemColor( . secondarySystemGroupedBackground)
280280 visitorsStackView. backgroundColor = . systemColor( . secondarySystemGroupedBackground)
281281
282- // Visitor empty view - insert it at the second-to-last index
282+ // Visitor empty view - insert it at the second-to-last index,
283+ // since we need the footer view (with height = 20) as the last item in the stack view.
283284 let emptyViewIndex = max ( 0 , visitorsStackView. arrangedSubviews. count - 2 )
284285 visitorsStackView. insertArrangedSubview ( visitorsEmptyView, at: emptyViewIndex)
285286 visitorsEmptyView. isHidden = true
You can’t perform that action at this time.
0 commit comments