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
Add Alignment to Select #2336
Add Alignment to Select #2336
Conversation
Need to pass it all the way down to menu item. Do so internally for now, as we don't need to expose alignment of menu items publicly. Fixes fyne-io#2329
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Sorry @fpabl0 - merge conflicts had to be resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good :), just one question mostly for curiosity.
@@ -1370,7 +1370,7 @@ func TestWindow_SetPadded(t *testing.T) { | |||
if hasNativeMenu() { | |||
menuHeight = 0 | |||
} else { | |||
menuHeight = widget.NewToolbar(widget.NewToolbarAction(theme.ContentCutIcon(), func() {})).MinSize().Height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the canvas text is empty, will it return a height different from 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the height of text is defined by its parameters - the width is what changes based on content
Need to pass it all the way down to menu item. Do so internally for now,
as we don't need to expose alignment of menu items publicly.
Fixes #2329
Checklist: