mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
calc correct button size
This commit is contained in:
parent
2afb19f94d
commit
0f0d1e9a9d
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
|
||||||
UiSharedService.AttachToolTip("Save and apply all changes");
|
UiSharedService.AttachToolTip("Save and apply all changes");
|
||||||
|
|
||||||
var rightSideButtons = UiSharedService.GetNormalizedIconTextButtonSize(Dalamud.Interface.FontAwesomeIcon.Undo, "Revert").X +
|
var rightSideButtons = UiSharedService.GetNormalizedIconTextButtonSize(Dalamud.Interface.FontAwesomeIcon.Undo, "Revert").X +
|
||||||
UiSharedService.GetNormalizedIconTextButtonSize(Dalamud.Interface.FontAwesomeIcon.ArrowsSpin, "Reset to Default Permissions").X;
|
UiSharedService.GetNormalizedIconTextButtonSize(Dalamud.Interface.FontAwesomeIcon.ArrowsSpin, "Reset to Default").X;
|
||||||
var availableWidth = ImGui.GetWindowContentRegionMax().X - ImGui.GetWindowContentRegionMin().X;
|
var availableWidth = ImGui.GetWindowContentRegionMax().X - ImGui.GetWindowContentRegionMin().X;
|
||||||
|
|
||||||
ImGui.SameLine(availableWidth - rightSideButtons);
|
ImGui.SameLine(availableWidth - rightSideButtons);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue