mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-07 06:44:34 +00:00
FullscreenUI: Fix achievement points placement with short description
This commit is contained in:
@@ -4792,9 +4792,10 @@ void FullscreenUI::DrawNotifications(ImVec2& position, float spacing)
|
||||
const ImVec2 text_size = font->CalcTextSizeA(text_font_size, text_font_weight, max_text_width, max_text_width,
|
||||
IMSTR_START_END(notif.text));
|
||||
|
||||
float box_width = std::max((horizontal_padding * 2.0f) + badge_size + horizontal_spacing +
|
||||
ImCeil(std::max(title_size.x, text_size.x)),
|
||||
min_width);
|
||||
float box_width = std::max(
|
||||
(horizontal_padding * 2.0f) + badge_size + horizontal_spacing +
|
||||
ImCeil(std::max(title_size.x, text_size.x) + (notif.note.empty() ? 0.0f : (horizontal_spacing + note_size.x))),
|
||||
min_width);
|
||||
const float box_height =
|
||||
std::max((vertical_padding * 2.0f) + ImCeil(title_size.y) + vertical_spacing + ImCeil(text_size.y), min_height);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user