guardar partida que vaig a pegar coses de la ia
This commit is contained in:
@@ -531,12 +531,12 @@ void ServiceMenu::precalculateMenuWidths()
|
|||||||
if (getGroupAlignment(sg) == GroupAlignment::LEFT)
|
if (getGroupAlignment(sg) == GroupAlignment::LEFT)
|
||||||
{
|
{
|
||||||
size_t total_width = max_option_width + MIN_GAP_OPTION_VALUE_ + max_value_width + (OPTIONS_HORIZONTAL_PADDING_ * 2);
|
size_t total_width = max_option_width + MIN_GAP_OPTION_VALUE_ + max_value_width + (OPTIONS_HORIZONTAL_PADDING_ * 2);
|
||||||
group_menu_widths_[group] = std::max((int)MIN_WIDTH_, (int)total_width);
|
group_menu_widths_[group] = std::max(static_cast<int>(MIN_WIDTH_), static_cast<int>(total_width));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
size_t total_width = max_option_width + (OPTIONS_HORIZONTAL_PADDING_ * 2);
|
size_t total_width = max_option_width + (OPTIONS_HORIZONTAL_PADDING_ * 2);
|
||||||
group_menu_widths_[group] = std::max((int)MIN_WIDTH_, (int)total_width);
|
group_menu_widths_[group] = std::max(static_cast<int>(MIN_WIDTH_), static_cast<int>(total_width));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user