fix: add main viewport position

This commit is contained in:
Anna 2021-04-06 09:26:12 -04:00
parent 34aa5d387e
commit 606d970794
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Dalamud, Version=5.2.4.2, Culture=neutral, PublicKeyToken=null">
<Reference Include="Dalamud, Version=5.2.4.3, Culture=neutral, PublicKeyToken=null">
<HintPath>$(AppData)\XIVLauncher\addon\Hooks\dev\Dalamud.dll</HintPath>
<Private>False</Private>
</Reference>

View File

@ -219,7 +219,7 @@ namespace ExpandedSearchInfo {
var xPos = x + width + actualWidth > display.X
? x - actualWidth
: x + width;
ImGui.SetWindowPos(new Vector2(xPos, y));
ImGui.SetWindowPos(ImGuiHelpers.MainViewport.Pos + new Vector2(xPos, y));
ImGui.End();
}