From 4b9b381bcf02c212d72f55d4738943941e843250 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 26 Apr 2023 00:07:09 -0500 Subject: gocui: more spacing logic Signed-off-by: Jeff Carr --- toolkit/gocui/place.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'toolkit/gocui/place.go') diff --git a/toolkit/gocui/place.go b/toolkit/gocui/place.go index 2ff791a..50e3b6f 100644 --- a/toolkit/gocui/place.go +++ b/toolkit/gocui/place.go @@ -48,13 +48,13 @@ func (w *cuiWidget) placeBox() { w.showWidgetPlacement(logNow, "boxE()") } +/* func (w *cuiWidget) getGroupWH() { p := w.parent // the parent must be a group widget // update parent gocuiSize - p.realWidth = 0 - p.realHeight = 0 - p.realHeight += me.buttonPadding // pad height for the group label + // p.realWidth = + // p.realHeight += me.DefaultHeight + me.PadH + me.FramePadH for _, child := range p.children { p.realWidth += child.realWidth p.realHeight += child.realHeight @@ -71,6 +71,7 @@ func (w *cuiWidget) getGroupWH() { } return } +*/ func (w *cuiWidget) placeWidgets() { if (w == nil) { -- cgit v1.2.3