mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
CMenuWidget: don't use parameter for label width calculation
Footer object does this itself.
This commit is contained in:
@@ -1553,7 +1553,7 @@ void CMenuWidget::setFooter(const struct button_label *_fbutton_labels, const in
|
|||||||
if (!footer)
|
if (!footer)
|
||||||
footer = new CComponentsFooter(x, y + height, width + scrollbar_width, 0, 0, NULL, CC_SHADOW_ON);
|
footer = new CComponentsFooter(x, y + height, width + scrollbar_width, 0, 0, NULL, CC_SHADOW_ON);
|
||||||
footer->setWidth(width + scrollbar_width);
|
footer->setWidth(width + scrollbar_width);
|
||||||
footer->setButtonLabels(fbutton_labels, fbutton_count, 0, width/fbutton_count);
|
footer->setButtonLabels(fbutton_labels, fbutton_count);
|
||||||
footer_height = footer->getHeight();
|
footer_height = footer->getHeight();
|
||||||
footer_width = footer->getWidth();
|
footer_width = footer->getWidth();
|
||||||
}else{
|
}else{
|
||||||
|
Reference in New Issue
Block a user