Skip to content

fix(edit_table): 修复选中单元格时内容因边框挤压产生偏移 - #42

Merged
feigeCode merged 1 commit into
feigeCode:devfrom
SWZ128:fix/cell-selection-border-shift
May 11, 2026
Merged

fix(edit_table): 修复选中单元格时内容因边框挤压产生偏移#42
feigeCode merged 1 commit into
feigeCode:devfrom
SWZ128:fix/cell-selection-border-shift

Conversation

@SWZ128

@SWZ128 SWZ128 commented May 11, 2026

Copy link
Copy Markdown

选中单元格使用 border_2 绘制高亮边框,边框会占用盒模型内部空间,
通过 content_box_inset 挤压内容区,导致文字位置跳动。改为在施加
选中边框后等量减少对应方向的 padding,保持内容区原点不变。

Before After
before after

选中单元格使用 border_2 绘制高亮边框,边框会占用盒模型内部空间,
通过 content_box_inset 挤压内容区,导致文字位置跳动。改为在施加
选中边框后等量减少对应方向的 padding,保持内容区原点不变。
@feigeCode
feigeCode merged commit 65687f7 into feigeCode:dev May 11, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants