Skip to content

regression since v2.2.3 - window is max size at all times #3507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
kirides opened this issue Dec 27, 2022 · 1 comment
Closed
2 tasks done

regression since v2.2.3 - window is max size at all times #3507

kirides opened this issue Dec 27, 2022 · 1 comment
Labels
unverified A bug that has been reported but not verified

Comments

@kirides
Copy link

kirides commented Dec 27, 2022

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

Before (937991b)
image

After (2a54f83)
image

How to reproduce

  1. Install fyne, any version >= fyne.io/fyne/v2 v2.2.2-rc3.0.20220706192957-2a54f832544f, e.g. v2.2.3
  2. Use code from example
  3. Observe wonky height.
  4. Height only can be corrected by switchig to richt-text tab and back to other tabs.
  • at this point resizing starts to work again

Screenshots

No response

Example code

package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/widget"
)

func main() {

	a := app.New()

	w := a.NewWindow("Issue")
	w.Resize(fyne.NewSize(740, 430))

	mainContainer :=
		container.NewAppTabs(
			container.NewTabItem("Something", widget.NewEntry()),
			container.NewTabItem("Attributions", newTabCredits()),
		)

	w.SetContent(mainContainer)
	w.CenterOnScreen()
	w.ShowAndRun()
}

func newTabCredits() fyne.CanvasObject {
	lbl := widget.NewRichTextFromMarkdown(`## cmd\gametts\Icon.png

Creative Commons License (2021)

"Text to speech" By Trevor Dsouza, IN

----
`)
	lbl.Wrapping = fyne.TextWrapWord
	return lbl
}

Fyne version

2.2.3+

Go compiler version

1.19.4

Operating system

Windows

Operating system version

Windows 11 22H2 Build 22621.963

Additional Information

No response

@kirides kirides added the unverified A bug that has been reported but not verified label Dec 27, 2022
alexballas added a commit to alexballas/fyne that referenced this issue Dec 29, 2022
andydotxyz added a commit that referenced this issue Dec 29, 2022
Fixes #3507 window is max size at all times
@andydotxyz
Copy link
Member

Thanks to @alexballas this is fixed on develop and we'll pop it in the next point release too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants