From ed2ac95bbbd30dab23ccece102fafe7a1d96ef4d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 10 Dec 2017 14:30:21 -0800 Subject: [PATCH] UI: Always clip tab contents. So they don't overlap tabs or etc. on transition. --- ext/native/ui/viewgroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/native/ui/viewgroup.cpp b/ext/native/ui/viewgroup.cpp index d85434b368..470b6c8f89 100644 --- a/ext/native/ui/viewgroup.cpp +++ b/ext/native/ui/viewgroup.cpp @@ -1129,7 +1129,7 @@ TabHolder::TabHolder(Orientation orientation, float stripSize, LayoutParams *lay tabStrip_->OnChoice.Handle(this, &TabHolder::OnTabClick); contents_ = new AnchorLayout(new LinearLayoutParams(1.0f)); - Add(contents_); + Add(contents_)->SetClip(true); } void TabHolder::AddTabContents(const std::string &title, View *tabContents) {