gizak / termui

Golang terminal dashboard
MIT License
13.06k stars 783 forks source link

Grid cannot be aligned #317

Open xhsky opened 2 years ago

xhsky commented 2 years ago

I changed it slightly using the sample file grid.go , the boxes in the grid are not aligned at 1/2 column

    grid.Set(
        ui.NewRow(1.0/2,
            ui.NewCol(1.0/2, slg),
            ui.NewCol(1.0/2, lc),
        ),
        ui.NewRow(1.0/2,
            ui.NewCol(1.0/4, ls),
            ui.NewCol(1.0/4, ls),
            //ui.NewRow(.9/3, gs[0]),
            //ui.NewRow(.9/3, gs[1]),
            //ui.NewRow(1.2/3, gs[2]),
            ui.NewCol(1.0/2, p),
        ),
    )

    ui.Render(grid)

image