Skip to content

Commit

Permalink
Adjust window size in menu shortcut test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikKalkoken committed Nov 27, 2024
1 parent 4b4edb4 commit 64fda1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion widget/menu_desktop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestMenu_Layout(t *testing.T) {
want: "menu/desktop/layout_window_too_short.xml",
},
"menu with shortcuts": {
windowSize: fyne.NewSize(300, 800),
windowSize: fyne.NewSize(450, 800),
menuPos: fyne.NewPos(10, 10),
mousePositions: []fyne.Position{
fyne.NewPos(32, 143), // open submenu
Expand Down
Binary file modified widget/testdata/menu/desktop/layout_shortcuts_other.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions widget/testdata/menu/desktop/layout_shortcuts_other.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<canvas size="300x800">
<canvas size="450x800">
<content>
<rectangle size="300x800"/>
<rectangle size="450x800"/>
</content>
<overlay>
<widget pos="2,3" size="296x795" type="*widget.OverlayContainer">
<widget pos="2,3" size="446x795" type="*widget.OverlayContainer">
<widget pos="10,10" size="66x162" type="*widget.Menu">
<widget size="66x162" type="*widget.Shadow">
<radialGradient centerOffset="0.5,0.5" pos="-4,-4" size="4x4" startColor="shadow"/>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 64fda1b

Please sign in to comment.