We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
同样的模板鸿蒙平台的渲染效果和Android/iOS差距过大,鸿蒙平台的组件尺寸、位置都正常。
Screenshots
Android效果:
鸿蒙效果:组件被裁剪(如便民服务只展示了上半部分)、车主生活中子组件上下位置不对、部分子组件(如标题)不展示
Phone (please complete the following information) :
便民服务.zip 车主生活.zip
鸿蒙侧代码:
List() { ListItem() { GXComponent({ templateItem: this.templateCarOwnerLife, templateData: this.templateDataCarOwnerLife, measureSize: this.measureSize }) } ListItem() { GXComponent({ templateItem: this.templateConvServices, templateData: this.templateDataConvServices, measureSize: this.measureSize }) }.margin({ top: 15 }) } .width('100%') .height(360)
尺寸计算相关代码
let sWidth = GXContext.shared().screenWidth; let sScale = GXContext.shared().screenScale; const scale = sScale ?? 1; // size this.measureSize = new Size(sWidth / scale - 30, NaN);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
同样的模板鸿蒙平台的渲染效果和Android/iOS差距过大,鸿蒙平台的组件尺寸、位置都正常。
Screenshots
Android效果:
鸿蒙效果:组件被裁剪(如便民服务只展示了上半部分)、车主生活中子组件上下位置不对、部分子组件(如标题)不展示
Phone (please complete the following information) :
便民服务.zip
车主生活.zip
鸿蒙侧代码:
尺寸计算相关代码
The text was updated successfully, but these errors were encountered: