diff --git a/frameworks/components/root_view.cpp b/frameworks/components/root_view.cpp index a17e09ab3e7e04f7576e68409d7ddbb12891c409..ff04fb5432583ffde2f85f23cb59dff711922c54 100755 --- a/frameworks/components/root_view.cpp +++ b/frameworks/components/root_view.cpp @@ -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; }