File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ class MenuBar
2222
2323 protected string $ tooltip = '' ;
2424
25+ protected bool $ resizable = true ;
26+
2527 protected bool $ onlyShowContextMenu = false ;
2628
2729 protected ?Menu $ contextMenu = null ;
@@ -79,6 +81,13 @@ public function tooltip(string $tooltip = ''): self
7981 return $ this ;
8082 }
8183
84+ public function resizable (bool $ resizable = true ): static
85+ {
86+ $ this ->resizable = $ resizable ;
87+
88+ return $ this ;
89+ }
90+
8291 public function alwaysOnTop ($ alwaysOnTop = true ): self
8392 {
8493 $ this ->alwaysOnTop = $ alwaysOnTop ;
@@ -103,6 +112,7 @@ public function toArray(): array
103112 'y ' => $ this ->y ,
104113 'label ' => $ this ->label ,
105114 'tooltip ' => $ this ->tooltip ,
115+ 'resizable ' => $ this ->resizable ,
106116 'width ' => $ this ->width ,
107117 'height ' => $ this ->height ,
108118 'vibrancy ' => $ this ->vibrancy ,
You can’t perform that action at this time.
0 commit comments