+
Skip to content

Grid cannot be aligned #317

@xhsky

Description

@xhsky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载