diff --git a/Alignment.go b/Alignment.go index c2295d75..8c85a939 100644 --- a/Alignment.go +++ b/Alignment.go @@ -200,6 +200,9 @@ func GetWidgetWidth(w Widget) (result float32) { spacingW, _ := GetItemSpacing() result = float32(GetCursorPos().X-startPos.X) - spacingW + // Undo SameLine (see https://github.com/AllenDang/giu/issues/807) + imgui.NewLine() + // reset drawing cursor position SetCursorPos(currentPos)