!2146 修复bindPopup显示位置没有减去绑定组件margin问题

Merge pull request !2146 from xuzhidan/master_popup_margin
This commit is contained in:
openharmony_ci
2022-04-06 11:25:35 +00:00
committed by Gitee
@@ -2897,6 +2897,9 @@ void JSViewAbstract::JsBindPopup(const JSCallbackInfo& info)
return;
}
auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent();
popupParam->SetTargetMargin(boxComponent->GetMargin());
auto inspector = ViewStackProcessor::GetInstance()->GetInspectorComposedComponent();
if (!inspector) {
LOGE("this component does not have inspector");