FIX: too small to show, enlarge it

jira: [STUDIO-11323]
Change-Id: Ibd56b0a72cbef0f9c752f83b1e8526a1c4275588
(cherry picked from commit c151680321af77facd1ec0aca337b7680a4c6ecd)
This commit is contained in:
xin.zhang
2025-04-03 15:17:18 +08:00
committed by Noisyfox
parent 1549e8f4e4
commit da33d78799

View File

@@ -1337,6 +1337,7 @@ void AMSLib::render_generic_lib(wxDC &dc)
auto alpha = m_info.material_colour.Alpha();
int height = size.y;
int curr_height = height * float(m_info.material_remain * 1.0 / 100.0);
if (curr_height != 0) { curr_height = std::max(curr_height, FromDIP(2)); }/*STUDIO-11323 too small to show, enlarge it*/
dc.SetFont(::Label::Body_13);
int top = height - curr_height;