Skip to content

Commit

Permalink
update to use wrap toolbar for netview
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Sep 2, 2024
1 parent 7068c80 commit 5e3194b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/emer/emergent/v2
go 1.22

require (
cogentcore.org/core v0.3.3-0.20240902213628-48df10901467
cogentcore.org/core v0.3.3-0.20240902230139-2dc02ce70fcc
github.com/BurntSushi/toml v1.3.2
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cogentcore.org/core v0.3.3-0.20240902213628-48df10901467 h1:AL9pi5H1ttL76EpnqBCCaflNnfwRxuezZOApoSOL564=
cogentcore.org/core v0.3.3-0.20240902213628-48df10901467/go.mod h1:dg3uRsPcd8S1ZYvRD2TztCtjopRkrB5V/lbl54xsQd4=
cogentcore.org/core v0.3.3-0.20240902230139-2dc02ce70fcc h1:ox22jCL/KbK6NEJrpwl9Weaiw5HaHd42JBUPYByRCXU=
cogentcore.org/core v0.3.3-0.20240902230139-2dc02ce70fcc/go.mod h1:dg3uRsPcd8S1ZYvRD2TztCtjopRkrB5V/lbl54xsQd4=
github.com/Bios-Marcel/wastebasket v0.0.4-0.20240213135800-f26f1ae0a7c4 h1:6lx9xzJAhdjq0LvVfbITeC3IH9Fzvo1aBahyPu2FuG8=
github.com/Bios-Marcel/wastebasket v0.0.4-0.20240213135800-f26f1ae0a7c4/go.mod h1:FChzXi1izqzdPb6BiNZmcZLGyTYiT61iGx9Rxx9GNeI=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
Expand Down
3 changes: 3 additions & 0 deletions netview/netview.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func (nv *NetView) Init() {
})

tree.AddChildAt(nv, "tbar", func(w *core.Toolbar) {
w.FinalStyler(func(s *styles.Style) {
s.Wrap = true
})
w.Maker(nv.MakeToolbar)
})
tree.AddChildAt(nv, "netframe", func(w *core.Frame) {
Expand Down

0 comments on commit 5e3194b

Please sign in to comment.