-
func loop() {
g.SingleWindow().Layout(g.Layout{
g.Row(
g.Child().Size(250, -1).Layout(g.Layout{
g.Label("Navigation"),
}),
g.Child().Size(-1, -1).Layout(g.Layout{
g.Label("Main Area"),
}),
),
g.Row(
g.Child().Size(-1, 30).Layout(g.Layout{
g.Label("Footer"),
}),
),
})
} You can see a couple of pixels of the footer at the bottom of the screenshot. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
AllenDang
Mar 2, 2023
Replies: 2 comments 10 replies
-
you need to do it this way:
should work ;-) |
Beta Was this translation helpful? Give feedback.
6 replies
-
package main
import (
g "github.com/AllenDang/giu"
)
func loop() {
g.SingleWindow().Layout(
g.Child().ID("Container").Layout(
g.Label("Add anything here"),
).Size(g.Auto, -40),
g.Child().ID("Footer").Layout(
g.Row(
g.Label("Footer"),
g.Label("status bar"),
),
).Size(g.Auto, g.Auto).Flags(g.WindowFlagsNoScrollbar),
)
}
func main() {
wnd := g.NewMasterWindow("Hello world", 400, 200, 0)
wnd.Run(loop)
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the demo code using same tech.