Improve QDB.

This commit is contained in:
Ottermandias 2024-03-01 14:29:36 +01:00
parent 436a975a44
commit ed6f32f757
7 changed files with 299 additions and 87 deletions

View file

@ -159,10 +159,6 @@ public class MainWindow : Window, IDisposable
{
var width = ImGui.CalcTextSize("Join Discord for Support").X + ImGui.GetStyle().FramePadding.X * 2;
var xPos = ImGui.GetWindowWidth() - width;
// Respect the scroll bar width.
if (ImGui.GetScrollMaxY() > 0)
xPos -= ImGui.GetStyle().ScrollbarSize + ImGui.GetStyle().FramePadding.X;
ImGui.SetCursorPos(new Vector2(xPos, 0));
CustomGui.DrawDiscordButton(Glamourer.Messager, width);