ENH: update the size control of print option item

jira: [STUDIO-11972]
Change-Id: Ie45c0493098e233a3c45ae037c8a2d475a04ddf9
(cherry picked from commit 11989e6af095564f7375e99b2ed88f66f6ca6985)
This commit is contained in:
xin.zhang
2025-05-08 08:46:20 +08:00
committed by Noisyfox
parent 4ae358f3e0
commit 56088f22d6
2 changed files with 8 additions and 10 deletions

View File

@@ -137,6 +137,7 @@ struct POItem
bool operator==(const POItem &other) const { return key == other.key && value == other.value; }
};
#define PRINT_OPT_WIDTH FromDIP(44)
class PrintOptionItem : public wxPanel
{
public:
@@ -151,7 +152,8 @@ public:
{
m_ops = ops;
selected_key = "";
auto width = ops.size() * FromDIP(56) + FromDIP(8);
auto width = ops.size() * PRINT_OPT_WIDTH + FromDIP(8);
auto height = FromDIP(22) + FromDIP(8);
SetMinSize(wxSize(width, height));
SetMaxSize(wxSize(width, height));