FIX: too small to show, enlarge it
jira: [STUDIO-11323] Change-Id: Ibd56b0a72cbef0f9c752f83b1e8526a1c4275588
This commit is contained in:
parent
1dfd5cfdfb
commit
c151680321
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue