mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Fix layout
This commit is contained in:
parent
8d15dfc031
commit
97066b7442
1 changed files with 3 additions and 1 deletions
|
|
@ -227,7 +227,9 @@ internal sealed class ActiveNotification : IActiveNotification, IDisposable
|
|||
var unboundedWidth = NotificationConstants.ScaledWindowPadding * 3;
|
||||
unboundedWidth += NotificationConstants.ScaledIconSize;
|
||||
unboundedWidth += Math.Max(
|
||||
ImGui.CalcTextSize(this.Title ?? this.DefaultTitle ?? string.Empty).X,
|
||||
Math.Max(
|
||||
ImGui.CalcTextSize(this.Title ?? this.DefaultTitle ?? string.Empty).X,
|
||||
ImGui.CalcTextSize(this.InitiatorPlugin?.Name ?? NotificationConstants.DefaultInitiator).X),
|
||||
ImGui.CalcTextSize(this.Content).X);
|
||||
|
||||
var width = Math.Min(maxWidth, unboundedWidth);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue