-
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
bugSomething isn't working correctlySomething isn't working correctlyconfirmedThis bug has been confirmedThis bug has been confirmed
Milestone
Description
Describe the bug
On Linux when resizing the window the size of all widgets gets changed.
How to reproduce
Launch the program and resize with drag handles
CogentResizeBug.mp4
Example code
package main
import (
"cogentcore.org/core/core"
"cogentcore.org/core/events"
"fmt"
)
func main() {
b := core.NewBody()
core.NewText(b).SetText("Minimal Reproduction")
textField := core.NewTextField(b)
textField.StartFocus()
btn := core.NewButton(b).SetText("Submit")
btn.OnClick(func(e events.Event) {
core.MessageSnackbar(b, fmt.Sprintf("button click, text content: %v", textField.Text()))
textField.SetText("")
})
//btn.SetKey(keymap.Enter)
//btn.SetShortcut(keymap.Enter.Chord())
btn.SetShortcut("Command+S")
b.RunMainWindow()
}Relevant output
See screen recordingPlatform
Linux
Metadata
Metadata
Assignees
Labels
bugSomething isn't working correctlySomething isn't working correctlyconfirmedThis bug has been confirmedThis bug has been confirmed
Type
Projects
Status
In progress