mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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;
|
var unboundedWidth = NotificationConstants.ScaledWindowPadding * 3;
|
||||||
unboundedWidth += NotificationConstants.ScaledIconSize;
|
unboundedWidth += NotificationConstants.ScaledIconSize;
|
||||||
unboundedWidth += Math.Max(
|
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);
|
ImGui.CalcTextSize(this.Content).X);
|
||||||
|
|
||||||
var width = Math.Min(maxWidth, unboundedWidth);
|
var width = Math.Min(maxWidth, unboundedWidth);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue