Skip to content

Commit

Permalink
Use pure fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
metal3d committed Oct 30, 2023
1 parent 89b4a4a commit ef32303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/responsive_layout/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ func main() {
winSizeLabel(window), // 100% by default
layout.Responsive(
widget.NewButton("One !", func() {}),
1, .33,
1, 1.0/3.0,
),
layout.Responsive(
widget.NewButton("Two !", func() {}),
1, .33,
1, 1.0/3.0,
),
layout.Responsive(
widget.NewButton("Three !", func() {}),
1, .34,
1, 1.0/3.0,
),
layout.Responsive(fromLayout(), 1, .5), // 100% for small, 50% for others
layout.Responsive(fromLayout(), 1, .5), // 100% for small, 50% for others
Expand Down

0 comments on commit ef32303

Please sign in to comment.