提交 5075fe15 编写于 作者: O openharmony_ci 提交者: Gitee

!109 【轻量级 PR】:解决FindTopView,UIButton透明时不能获取正确的style

Merge pull request !109 from benb365/N/A
......@@ -583,7 +583,7 @@ UIView* RootView::GetTopUIView(const Rect& rect)
while (stackCount >= 0) {
while (currentView != nullptr) {
if (currentView->GetOrigRect().IsContains(rect) && currentView->IsVisible()) {
if (currentView->GetStyleConst().bgOpa_ == OPA_OPAQUE && currentView->OnPreDraw(copyRect) &&
if (currentView->GetStyle(STYLE_BACKGROUND_OPA) == OPA_OPAQUE && currentView->OnPreDraw(copyRect) &&
currentView->GetOpaScale() == OPA_OPAQUE) {
topView = currentView;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册