FIX: too small to show, enlarge it

jira: [STUDIO-11323]
Change-Id: Ibd56b0a72cbef0f9c752f83b1e8526a1c4275588
This commit is contained in:
xin.zhang 2025-04-03 15:17:18 +08:00 committed by lane.wei
parent 1dfd5cfdfb
commit c151680321
1 changed files with 1 additions and 0 deletions

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;