Skip to content

Commit

Permalink
Turns out this ugly workaround was actually necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Benualdo committed Sep 30, 2024
1 parent 1676ff3 commit 0306c90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/editor/ImGui/Window/ImGuiWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,12 @@ namespace vg::editor
//--------------------------------------------------------------------------------------
void ImGuiWindow::drawPropertyLabel(const PropertyContext & _propContext, const char * _label, const char * _tooltip)
{
// ugly workaround
auto x = ImGui::GetCursorPosX();
ImGui::SameLine();
if (x > 100)
ImGui::SetCursorPosX(x);

ImGui::Text(_label);

if (_tooltip && _tooltip[0] != '\0' && ImGui::IsItemHovered())
Expand Down

0 comments on commit 0306c90

Please sign in to comment.