相对的位置大小的问题可以参考开发API实现。https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-arkui-uicontext-V5如果该组件是FrameNode的话,可以参考一下APIhttps://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-arkui-framenode-V5\#getpositiontoparentwithtransform12
相对的位置大小的问题可以参考开发API实现。https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-arkui-uicontext-V5
如果该组件是FrameNode的话,可以参考一下APIhttps://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-arkui-framenode-V5\#getpositiontoparentwithtransform12