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

SafeAreaOffset #18

Closed
5argon opened this issue Jun 3, 2019 · 1 comment
Closed

SafeAreaOffset #18

5argon opened this issue Jun 3, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@5argon
Copy link
Owner

5argon commented Jun 3, 2019

I started to find the need of an another component which do not control RectTransform's size at all, but rather only locks one axis of anchored position to be offsetted equal to safe area.

I am thinking should this be a function of SafeAreaPadding or a new component, but I believe it is a new component since it doesn't require size locking. (Also it would be easier to maintain code)

Driving just the anchored position is easy to make an Unlocked mode that I want for SafeAreaPadding but having difficulty programming it much more easily. Unlike "padding" which turns out to be related to many fields on the RectTransform anchored position is just an easy to understand, pure value.

Also with just anchored position, I believe it will be easier to integrate 2019.2's Cutout later on. For example, offsetting to the left of Galaxy S10's corner cutout when trying to anchor to the top right corner. If you use SafeAreaPadding, the only choice is to go down.

@5argon 5argon added the enhancement New feature or request label Jun 7, 2019
@5argon
Copy link
Owner Author

5argon commented Oct 26, 2019

#35 is a possible solution now.

@5argon 5argon closed this as completed Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant