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

Min-max width/height support #67

Open
ibrahimpenekli opened this issue Jul 28, 2023 · 3 comments
Open

Min-max width/height support #67

ibrahimpenekli opened this issue Jul 28, 2023 · 3 comments
Labels
feature New feature or request ugui Built-in UI (uGUI)

Comments

@ibrahimpenekli
Copy link
Member

How should we import this new feature?

image
@ibrahimpenekli ibrahimpenekli added the feature New feature or request label Jul 28, 2023
@ibrahimpenekli
Copy link
Member Author

Added support for min width/height via LayoutElement in v1.7.0; don't know how to support max width/height though.

@gunseliozkan
Copy link
Collaborator

I looked it up and tested somethings myself to see if we were able to implement max width/height but it seems it is not possible handling it using the current layout system of Unity.

Two possible solutions:

  1. Creating an extra UI object in hierarchy to mimic max width/height (I think this is overkill and it may introduce more bugs)
  2. Writing our own layout element like this: https://stackoverflow.com/a/41048468

@ibrahimpenekli
Copy link
Member Author

We should go with option 2. but it is not urgent at all.

@ibrahimpenekli ibrahimpenekli added the ugui Built-in UI (uGUI) label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request ugui Built-in UI (uGUI)
Projects
None yet
Development

No branches or pull requests

2 participants