mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-19 14:43:36 -04:00
!2146 修复bindPopup显示位置没有减去绑定组件margin问题
Merge pull request !2146 from xuzhidan/master_popup_margin
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user