File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -216,4 +216,6 @@ v0.9.1 (WIP):
216
216
217
217
BUGFIX: Editor: Delete item from internal list only when action accepts (#178)
218
218
219
- BUGFIX: Editor: Cycle canvas to correctly restore view on first frame (#159)
219
+ BUGFIX: Editor: Cycle canvas to correctly restore view on first frame (#159)
220
+
221
+ BUGFIX: Editor: Don't relay on ImGui CursorMaxPos to apply padding (https://github.com/ocornut/imgui/issues/5548)
Original file line number Diff line number Diff line change @@ -5256,9 +5256,9 @@ void ed::NodeBuilder::End()
5256
5256
ImGui::EndGroup ();
5257
5257
ImGui::SameLine (0 , editorStyle.NodePadding .z );
5258
5258
ImGui::PushStyleVar (ImGuiStyleVar_ItemSpacing, ImVec2 (0 .0f , 0 .0f ));
5259
- ImGui::Dummy (ImVec2 (0 , 0 ));
5259
+ ImGui::Dummy (ImVec2 (0 , 0 )); // bump cursor at the end of the line and move to next one
5260
+ ImGui::Dummy (ImVec2 (0 , editorStyle.NodePadding .w )); // apply padding
5260
5261
ImGui::PopStyleVar ();
5261
- ImGui::SetCursorPosY (ImGui::GetCursorPosY () + editorStyle.NodePadding .w );
5262
5262
}
5263
5263
5264
5264
// End outer group.
You can’t perform that action at this time.
0 commit comments