Skip to content

🐛 fix(ui): 输入对话框文本垂直居中(任务/配置编辑器) - #6

Merged
DevMinions merged 2 commits into
mainfrom
fix/task-editor-input-align
Jun 23, 2026
Merged

DevMinions merged 2 commits into
mainfrom
fix/task-editor-input-align

Conversation

@DevMinions

@DevMinions DevMinions commented Jun 23, 2026 •

Copy link
Copy Markdown
Owner

输入对话框的输入框文本错位 —— 排查了全部输入弹窗:

修复(固定行高里文本顶对齐/被裁)

  • 新建/编辑任务(TaskEditorWindow):名称/服务器/节点/TCP 地址在固定 Height="36" 行 → 文本偏上;采样间隔/死区原 Height="30" 比 wpfui TextBox 自然高度还矮,居中后数值偏下、底部被裁。→ 全部输入框 VerticalContentAlignment="Center";采样间隔/死区去掉写死 Height。
  • 新建/编辑配置(ConfigEntryEditorWindow):Key/Value 同样在固定 Height="36" 行、缺居中 → 文本偏上。→ 加 VerticalContentAlignment="Center"。

排查正常(无需改)

  • 新建/编辑 Tag(TagEditorWindow):无固定行高,自然高度,文本已居中(真机确认 Item 居中)。
  • 浏览节点(BrowseView,经 BrowseDialogWindow 托管):输入在 DockPanel 里自然高度,正常。
  • 消息/关于弹窗:无输入框。

office 真机逐个确认。

🤖 Generated with Claude Code

adamyu and others added 2 commits June 23, 2026 14:26
固定行高(36)的输入框(名称/服务器/节点/TCP地址)文本顶对齐显得偏上;采样间隔/死区原 Height=30
比 wpfui TextBox 自然高度还矮,加居中后数值偏下且底部被框裁掉一点。统一给所有输入框
VerticalContentAlignment=Center,并去掉采样间隔/死区的写死 Height=30(改用自然高度),
各框高度一致、文本垂直居中、不再裁切。

真机(office)确认:新建任务对话框各输入框文本居中、采样间隔不再偏下遮挡。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ConfigEntryEditorWindow 的 Key/Value 输入框同样在固定 Height=36 行里、缺 VerticalContentAlignment
→ 文本顶对齐。与任务对话框同一处理:加 VerticalContentAlignment=Center。

排查其余输入弹窗:Tag 编辑器(无固定行高,自然高度)、浏览节点(DockPanel 自然高度)均正常,无需改。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@DevMinions DevMinions changed the title 🐛 fix(ui): 新建/编辑任务对话框输入框文本垂直居中 🐛 fix(ui): 输入对话框文本垂直居中(任务/配置编辑器) Jun 23, 2026
@DevMinions
DevMinions merged commit 9d8368a into main Jun 23, 2026
1 check passed
@DevMinions
DevMinions deleted the fix/task-editor-input-align branch June 23, 2026 06:37
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.

1 participant