Skip to content

Commit

Permalink
Also don't make it so windows can never shrink
Browse files Browse the repository at this point in the history
That was misguided... I think an artefact of bad MultiWindow code that was in earlier
  • Loading branch information
andydotxyz committed Dec 1, 2023
1 parent 2b8bec5 commit bf7f59c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions container/innerwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ var _ fyne.WidgetRenderer = (*innerWindowRenderer)(nil)

type innerWindowRenderer struct {
*intWidget.ShadowingRenderer
min fyne.Size

win *InnerWindow
bar *fyne.Container
Expand Down Expand Up @@ -135,9 +134,6 @@ func (i *innerWindowRenderer) MinSize() fyne.Size {
contentMin := i.win.content.MinSize()
barMin := i.bar.MinSize()

// only allow windows to grow, as per normal windows
contentMin = contentMin.Max(i.min)
i.min = contentMin
innerWidth := fyne.Max(barMin.Width, contentMin.Width)

return fyne.NewSize(innerWidth+pad*2, contentMin.Height+pad+barMin.Height).Add(fyne.NewSquareSize(pad))
Expand Down

0 comments on commit bf7f59c

Please sign in to comment.