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

Setting value_str on a dropdown object changes height of object #517

Open
3 tasks done
akloeckner opened this issue Aug 17, 2023 · 0 comments
Open
3 tasks done

Setting value_str on a dropdown object changes height of object #517

akloeckner opened this issue Aug 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@akloeckner
Copy link

Perform all steps below and tick them with [x]

  • Check the related part of the Documentation
  • Update openHASP to the latest version
  • Reproduce the issue and describe all steps

Describe the bug

If you create a dropdown object and then set the value_str property, the object changes its height.

To Reproduce

jsonl {"page":2,"id":97,"obj":"dropdown","x": 85,"y": 125,"w":73,"h":64,"options":"Apple\nBanana\nOrange\nMelon"}
jsonl {"page":2,"id":98,"obj":"dropdown","x":163,"y": 125,"w":73,"h":64,"options":"Apple\nBanana\nOrange\nMelon"}
p2b98.value_str=x

The same happens, if value_str is set directly from the jsonl.

Expected behavior

The height should not change, but it should respect the given h setting.

Screenshots or video

image
@akloeckner akloeckner added the bug Something isn't working label Aug 17, 2023
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
Development

No branches or pull requests

1 participant