Skip to content

Selector toolbar position - #591

Open
amantoux wants to merge 2 commits into
masterfrom
selector-toolbar-position
Open

amantoux wants to merge 2 commits into
masterfrom
selector-toolbar-position

Conversation

@amantoux

Copy link
Copy Markdown
Member

Color and heading selectors can cover the formatting toolbar when it sits above the keyboard. Position selectors below the presenter when there is room, and flip above it when that side offers more space. Use the full toolbar's vertical bounds while keeping horizontal alignment with the button, and preserve keyboard and safe-area constraints.

Comment on lines +1434 to +1435
? presenter.top - _selectorScreenPadding - childSize.height
: presenter.bottom + _selectorScreenPadding;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for working on this and it works good except I believe there is extra padding now as you can see from the screenshots. I believe you shouldn't account for _selectorScreenPadding here as they would be added in _fitInsideScreen if needed (to push it away from screen edges).

Before:
Image
Image

After:
Image
Image

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.

2 participants