Merge pull request #4191 from leezh/progressbar_minsize
Progress bar minsize now checks percent_visible
This commit is contained in:
commit
72825ecdca
|
@ -35,7 +35,9 @@ Size2 ProgressBar::get_minimum_size() const {
|
|||
Ref<Font> font = get_font("font");
|
||||
|
||||
Size2 ms=bg->get_minimum_size()+bg->get_center_size();
|
||||
if (percent_visible) {
|
||||
ms.height=MAX(ms.height,bg->get_minimum_size().height+font->get_height());
|
||||
}
|
||||
return ms;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue