mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Fix toolbar rendering on Windows (#2784)
Currently on windows, when you resize the window relatively small, the end of the toolbar will be clipped like so:  This is what it look like on Linux/macOS:  This PR fixes this issue so it behaves like on Linux/macOS: 
This commit is contained in:
commit
5c64a0587a
1 changed files with 0 additions and 3 deletions
|
@ -7152,9 +7152,6 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale()
|
|||
float noitems_width = top_tb_width - size * items_cnt; // width of separators and borders in top toolbars
|
||||
|
||||
// calculate scale needed for items in all top toolbars
|
||||
#ifdef __WINDOWS__
|
||||
cnv_size.set_width(cnv_size.get_width() + m_separator_toolbar.get_width() + collapse_toolbar_width);
|
||||
#endif
|
||||
float new_h_scale = (cnv_size.get_width() - noitems_width) / (items_cnt * GLToolbar::Default_Icons_Size);
|
||||
|
||||
//for protect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue