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

[BUG] Popup doesn't resize properly when using lots of text in the Timer Accessory View #106

Closed
johngsea opened this issue Aug 2, 2022 · 0 comments · Fixed by #107
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@johngsea
Copy link
Contributor

johngsea commented Aug 2, 2022

Describe the bug
The popup grows wider and wider but doesn't grow in height. The timer accessory view is not constrained to its container's width.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/IBM/mac-ibm-notifications/wiki/Script-Examples
    Pop-up Dialog box (1 or 2 Buttons)
  2. modify code to show a timer accessory view:
    button=$("${NA_PATH}"
    -type "${WINDOWTYPE}"
    -bar_title "${BAR_TITLE}"
    -title "${TITLE}"
    -subtitle "${SUBTITLE}"
    -main_button_label "${BUTTON_1}"
    -accessory_view_type timer
    -accessory_view_payload "Here is some long text. Look at how it doesn't resize the dialog properly. We can put in a lot of text here and it doesn't resize to fit the parent's width. It just keeps making the dialog wider instead of making it grow in height."
    "${sec_button[@]}"
    -always_on_top)

Expected behavior
The popup should maintain a fixed width and grow vertically.

Screenshots
Actual:
screenshot-timerview-bug

Expected:
screenshow-timerview-fixed

Desktop (please complete the following information):

  • OS: macOS 12.5 (seen on 11.6.8 as well)
  • Project version: 2.7.1 Build 81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants