mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-24 11:22:07 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user