登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
OpenHarmony
>
OpenHarmony工具集
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
190
Star
294
Fork
6.5K
OpenHarmony
/
xts_acts
关闭
代码
Issues
396
Pull Requests
335
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
申请加入仓库
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
[Bug]: [OpenHarmony 4.0.9.3] [alignSelf]flex组件设置alignSelf属性后,实际的尺寸与预期值有偏差。
已完成
#I7P2F9
wangchao
创建于
2023-07-30 12:47
### 发生了什么问题? flex组件设置alignSelf属性后,实际的尺寸与预期值有偏差。 ### 期望行为是什么? 当设置目标组件alignSelf属性为ItemAlign.End时: 1.目标组件alignSelf属性为ItemAlign.End。 2.目标组件左下坐标和父组件左下坐标相同。 rect.bottom=parentRect.bottom rect.left = parentRect.left 当设置目标组件alignSelf属性为ItemAlign.Stretch时: 1.目标组件alignSelf属性为ItemAlign.Stretch。 2.目标组件高度和父组件高度相同。 rect.bottom - rect.top = vp2px(400) ### 如何复现该缺陷 <验证步骤> 1.设置目标组件属性:alignSelf = ItemAlign.Auto。 2.调用getInspectorByKey(key).$rect获取目标组件的区域信息(rect),获取父组件的区域信息(parentRect)。 3.调用getInspectorByKey(key).$attrs.alignSelf获取目标组件的alignSelf属性值。 ### 其他补充信息 <环境信息> 硬件型号:RK3568 软件版本:OpenHarmony 4.0.9.3 SDK版本:API 10 <确认对象> 测试组件名称:Flex 测试属性名称:alignSelf <预置条件> Column --Row(父组件,width = 400, height = 400,单位默认为vp,alignItems属性 = VerticalAlign.Top) ----目标组件(width = 200, height = 200,单位默认为vp) <参照资料> https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-flex-layout.md <log> 07-26 15:44:57.626 27269 27269 I A03d00/JSAPP: [getInspectorByKey] key is: Flex 07-26 15:44:57.626 27269 27269 I A03d00/JSAPP: [getInspectorByKey] current component is: Flex 07-26 15:44:57.626 27269 27269 I A03d00/JSAPP: {"left":60,"top":222,"right":360,"bottom":522} 07-26 15:44:57.629 27269 27269 I A03d00/JSAPP: [Flex] obj is: {"$type":"Flex","$ID":1570,"$rect":"[60.00, 222.00][360.00,522.00]","$attrs":{"borderStyle":"BorderStyle.Solid","borderColor":"#FF000000","borderWidth":"0.00vp","borderRadius":{"topLeft":"0.00vp","topRight":"0.00vp","bottomLeft":"0.00vp","bottomRight":"0.00vp"},"border":"{\"style\":\"BorderStyle.Solid\",\"color\":\"#FF000000\",\"width\":\"0.00vp\",\"radius\":{\"topLeft\":\"0.00vp\",\"topRight\":\"0.00vp\",\"bottomLeft\":\"0.00vp\",\"bottomRight\":\"0.00vp\"}}","borderImage":"{\"source\":\"\",\"slice\":\"0.00px\",\"width\":\"0.00px\",\"outset\":\"0.00px\",\"repeat\":\"RepeatMode.Stretch\",\"fill\":\"false\"}","overlay":{"title":"","options":{"align":"Alignment.Center","offset":{"x":"0.00px","y":"0.00px"}}},"position":{"x":"","y":""},"offset":{"x":"","y":""},"markAnchor":{"x":"","y":""},"backgroundImage":"NONE","backgroundImageSize":"ImageSize.Auto","backgroundImagePosition":{"x":0,"y":0},"backdropBlur":0,"blur":0,"grayscale":0,"brightness":1,"saturate":1,"contrast":1,"invert":0,"sepia":0,"hueRo 07-26 15:44:57.634 27269 27269 E A03d00/JSAPP: CommonTest.initTest execute testAlignSelfRowFlexSetEnd error:AssertException: expect 522 equals 672 <出现概率> 100% <执行报告截图>  ### 版本或分支信息 - [x] master - [ ] Release 3.2 - [ ] Release 3.1 - [ ] Release 3.0
### 发生了什么问题? flex组件设置alignSelf属性后,实际的尺寸与预期值有偏差。 ### 期望行为是什么? 当设置目标组件alignSelf属性为ItemAlign.End时: 1.目标组件alignSelf属性为ItemAlign.End。 2.目标组件左下坐标和父组件左下坐标相同。 rect.bottom=parentRect.bottom rect.left = parentRect.left 当设置目标组件alignSelf属性为ItemAlign.Stretch时: 1.目标组件alignSelf属性为ItemAlign.Stretch。 2.目标组件高度和父组件高度相同。 rect.bottom - rect.top = vp2px(400) ### 如何复现该缺陷 <验证步骤> 1.设置目标组件属性:alignSelf = ItemAlign.Auto。 2.调用getInspectorByKey(key).$rect获取目标组件的区域信息(rect),获取父组件的区域信息(parentRect)。 3.调用getInspectorByKey(key).$attrs.alignSelf获取目标组件的alignSelf属性值。 ### 其他补充信息 <环境信息> 硬件型号:RK3568 软件版本:OpenHarmony 4.0.9.3 SDK版本:API 10 <确认对象> 测试组件名称:Flex 测试属性名称:alignSelf <预置条件> Column --Row(父组件,width = 400, height = 400,单位默认为vp,alignItems属性 = VerticalAlign.Top) ----目标组件(width = 200, height = 200,单位默认为vp) <参照资料> https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-flex-layout.md <log> 07-26 15:44:57.626 27269 27269 I A03d00/JSAPP: [getInspectorByKey] key is: Flex 07-26 15:44:57.626 27269 27269 I A03d00/JSAPP: [getInspectorByKey] current component is: Flex 07-26 15:44:57.626 27269 27269 I A03d00/JSAPP: {"left":60,"top":222,"right":360,"bottom":522} 07-26 15:44:57.629 27269 27269 I A03d00/JSAPP: [Flex] obj is: {"$type":"Flex","$ID":1570,"$rect":"[60.00, 222.00][360.00,522.00]","$attrs":{"borderStyle":"BorderStyle.Solid","borderColor":"#FF000000","borderWidth":"0.00vp","borderRadius":{"topLeft":"0.00vp","topRight":"0.00vp","bottomLeft":"0.00vp","bottomRight":"0.00vp"},"border":"{\"style\":\"BorderStyle.Solid\",\"color\":\"#FF000000\",\"width\":\"0.00vp\",\"radius\":{\"topLeft\":\"0.00vp\",\"topRight\":\"0.00vp\",\"bottomLeft\":\"0.00vp\",\"bottomRight\":\"0.00vp\"}}","borderImage":"{\"source\":\"\",\"slice\":\"0.00px\",\"width\":\"0.00px\",\"outset\":\"0.00px\",\"repeat\":\"RepeatMode.Stretch\",\"fill\":\"false\"}","overlay":{"title":"","options":{"align":"Alignment.Center","offset":{"x":"0.00px","y":"0.00px"}}},"position":{"x":"","y":""},"offset":{"x":"","y":""},"markAnchor":{"x":"","y":""},"backgroundImage":"NONE","backgroundImageSize":"ImageSize.Auto","backgroundImagePosition":{"x":0,"y":0},"backdropBlur":0,"blur":0,"grayscale":0,"brightness":1,"saturate":1,"contrast":1,"invert":0,"sepia":0,"hueRo 07-26 15:44:57.634 27269 27269 E A03d00/JSAPP: CommonTest.initTest execute testAlignSelfRowFlexSetEnd error:AssertException: expect 522 equals 672 <出现概率> 100% <执行报告截图>  ### 版本或分支信息 - [x] master - [ ] Release 3.2 - [ ] Release 3.1 - [ ] Release 3.0
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已拒绝
负责人
未设置
标签
bug
waiting_for_assign
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
C++
1
https://gitee.com/openharmony/xts_acts.git
git@gitee.com:openharmony/xts_acts.git
openharmony
xts_acts
xts_acts
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册