fix(edit_table): 修复双击编辑时单元格内容位移 - #45
Merged
Merged
Conversation
编辑模式和显示模式走了两套不同的布局路径,前者完全跳过 table_cell_size 和边框补偿,渲染的 Input 组件又自带 py/px, 导致文本位置不一致。 改动: - 统一 render_cell 的容器布局,两种模式共用 table_cell_size + 边框补偿 - Input 新增 bare() 模式,跳过自带的 padding/height/items_center, 让父容器完全控制布局,保留所有键盘/鼠标事件处理
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
编辑模式和显示模式走了两套不同的布局路径,前者完全跳过
table_cell_size 和边框补偿,渲染的 Input 组件又自带 py/px,
导致文本位置不一致。
改动:
让父容器完全控制布局,保留所有键盘/鼠标事件处理