cc_frm_footer: auto-calc label_width by default

Origin commit data
------------------
Commit: b4fffee31b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-19 (Mon, 19 Jun 2017)

Origin message was:
------------------
- cc_frm_footer: auto-calc label_width by default
This commit is contained in:
vanhofen
2017-06-19 21:36:10 +02:00
parent 7057d4ecd0
commit e259a9dd07

View File

@@ -336,7 +336,7 @@ void CComponentsFooter::paintButtons(const int& x_pos,
this->setDimensionsAll(x_pos, y_pos, w, h); this->setDimensionsAll(x_pos, y_pos, w, h);
this->setButtonFont(font); this->setButtonFont(font);
this->setContextButton(context_buttons); this->setContextButton(context_buttons);
this->setButtonLabels(content, label_count, 0, label_width); this->setButtonLabels(content, label_count, 0, label_width ? label_width : w/label_count);
this->paint(do_save_bg); this->paint(do_save_bg);
} }