fix: don't account for cursor pos twice
This commit is contained in:
parent
b6f5dbeb4c
commit
1368518e02
|
@ -87,7 +87,7 @@ internal class QuestionsTab {
|
||||||
var currentX = ImGui.GetCursorPosX();
|
var currentX = ImGui.GetCursorPosX();
|
||||||
var availX = ImGui.GetContentRegionAvail().X;
|
var availX = ImGui.GetContentRegionAvail().X;
|
||||||
|
|
||||||
var move = availX - width - currentX;
|
var move = availX - width;
|
||||||
ImGui.SetCursorPosX(currentX + move);
|
ImGui.SetCursorPosX(currentX + move);
|
||||||
ImGui.TextUnformatted(label);
|
ImGui.TextUnformatted(label);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue