Skip to content
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

If you put some "Text" in an "Frames" , only the first one can be displayed #1368

Open
wingofsky opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working correctly confirmed This bug has been confirmed
Milestone

Comments

@wingofsky
Copy link

Describe the bug

A strange phenomenon has occurred
If you put some "Text" in an "Frames" , only the first one can be displayed

image

If we add other widgets to the end, we can display them all

image

How to reproduce

Check out the example code

Example code

package main

import "cogentcore.org/core/core"

var (
	Body   = core.NewBody()
	Header = core.NewFrame(Body)
)

func main() {
	core.NewText(Header).SetText("1")
	core.NewText(Header).SetText("2")
	core.NewText(Header).SetText("3")
	//core.NewButton(Header).SetText("4")
	//core.NewButton(Header).SetText("5")
	//core.NewButton(Header).SetText("6")

	core.NewButton(Body).SetText("Hello, World!")

	Body.RunMainWindow()
}

Relevant output

No response

Platform

macOS

@wingofsky wingofsky added the bug Something isn't working correctly label Dec 13, 2024
@github-project-automation github-project-automation bot moved this to Todo in Bugs Dec 13, 2024
@kkoreilly
Copy link
Member

Thank you for reporting this. I can reproduce this and we will fix it soon.

@kkoreilly kkoreilly added the confirmed This bug has been confirmed label Dec 13, 2024
@kkoreilly kkoreilly added this to the v0.4 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly confirmed This bug has been confirmed
Projects
Status: Todo
Development

No branches or pull requests

2 participants