From e7d2dda591a99b5222bb12115e1e1a00875805c3 Mon Sep 17 00:00:00 2001 From: dengzhongyuan365-dev Date: Sat, 14 Nov 2026 01:20:42 +0800 Subject: [PATCH] fix: widen unit combo box to show MiB text fully MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Root cause: ResizeDialog unit combo box fixed width 70px is too narrow for DComboBox under DDE chameleon theme, "MiB" truncated to "..." when arrow button and frame padding consume available space 2. Fix: change setFixedWidth(70) to setFixedWidth(80), matching historical fix commit 70210b8 (PMS: BUG-338819) never merged into release/1071 3. Impact: only affects unit combo box display width in resize dialog, no logic or API change, no other callers affected Log: fix MiB unit text truncated in partition resize dialog Influence: 1. Test partition resize dialog shows MiB unit text fully 2. Test partition resize dialog shows GiB unit text fully 3. Test under different DPI scaling ratios fix: 加宽单位下拉框以完整显示MiB文案 1. 根因:ResizeDialog 单位下拉框固定宽度 70px 在 DDE chameleon 主题 下过窄,箭头按钮和边框内边距占用空间后 "MiB" 被截断为 "..." 2. 方案:将 setFixedWidth(70) 改为 setFixedWidth(80),与历史修复 commit 70210b8(PMS: BUG-338819)一致,该修复未合入 release/1071 3. 影响:仅影响空间调整对话框单位下拉框显示宽度,无逻辑或接口变更, 无其他调用方受影响 Log: 修复分区空间调整对话框中MiB单位文案显示不全的问题 Influence: 1. 测试分区空间调整对话框中 MiB 单位文案完整显示 2. 测试分区空间调整对话框中 GiB 单位文案完整显示 3. 测试不同 DPI 缩放比例下的显示效果 PMS: BUG-378917 --- application/widgets/resizedialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/widgets/resizedialog.cpp b/application/widgets/resizedialog.cpp index 30e7ada7..aed8dc5a 100644 --- a/application/widgets/resizedialog.cpp +++ b/application/widgets/resizedialog.cpp @@ -58,7 +58,7 @@ void ResizeDialog::initUi() << "GiB"; m_comboBox->addItems(stritems); m_comboBox->setCurrentIndex(1); - m_comboBox->setFixedWidth(70); + m_comboBox->setFixedWidth(80); m_comboBox->setAccessibleName("unit"); hLayout->addWidget(m_lineEdit);