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

Add Alignment to Select #2336

Merged
merged 5 commits into from Jul 29, 2021
Merged

Add Alignment to Select #2336

merged 5 commits into from Jul 29, 2021

Conversation

andydotxyz
Copy link
Member

@andydotxyz andydotxyz commented Jul 22, 2021

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:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.
  • Public APIs match existing style.

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
widget/popup_menu.go Outdated Show resolved Hide resolved
@andydotxyz andydotxyz requested a review from fpabl0 July 28, 2021 13:34
fpabl0
fpabl0 previously approved these changes Jul 28, 2021
Copy link
Member

@fpabl0 fpabl0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@andydotxyz
Copy link
Member Author

Sorry @fpabl0 - merge conflicts had to be resolved.

Copy link
Member

@fpabl0 fpabl0 left a 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
Copy link
Member

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?

Copy link
Member Author

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

@andydotxyz andydotxyz merged commit 7720e49 into fyne-io:develop Jul 29, 2021
@andydotxyz andydotxyz deleted the fix/2329 branch July 29, 2021 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants