Skip to content

fix(material/tabs): pagination sometimes incorrectly shown after zoom#23759

Merged
mmalerba merged 1 commit intoangular:masterfrom
crisbeto:23724/tabs-resizing-pagination
Nov 15, 2021
Merged

fix(material/tabs): pagination sometimes incorrectly shown after zoom#23759
mmalerba merged 1 commit intoangular:masterfrom
crisbeto:23724/tabs-resizing-pagination

Conversation

@crisbeto
Copy link
Copy Markdown
Member

Currently if one of the end tabs is selected and the user zooms in, we may end up showing the pagination unnecessarily. The issue comes from the fact that there's a transition on the ink bar which can cause the parent overflow while it is being measured.

These changes resolve the issue by measuring a different element.

Fixes #23724.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Oct 15, 2021
@crisbeto crisbeto requested a review from a team October 15, 2021 13:35
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 15, 2021
@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Oct 18, 2021
@wagnermaciel
Copy link
Copy Markdown
Contributor

@crisbeto This needs a rebase

Currently if one of the end tabs is selected and the user zooms in, we may end up showing the pagination unnecessarily. The issue comes from the fact that there's a transition on the ink bar which can cause the parent overflow while it is being measured.

These changes resolve the issue by measuring a different element.

Fixes angular#23724.
@crisbeto crisbeto force-pushed the 23724/tabs-resizing-pagination branch from a8dd126 to 989ece8 Compare October 25, 2021 07:06
@crisbeto
Copy link
Copy Markdown
Member Author

Rebased.

@josephperrott josephperrott removed the request for review from a team November 5, 2021 16:03
@mmalerba mmalerba merged commit 8cdd3d7 into angular:master Nov 15, 2021
mmalerba pushed a commit that referenced this pull request Nov 15, 2021
…#23759)

Currently if one of the end tabs is selected and the user zooms in, we may end up showing the pagination unnecessarily. The issue comes from the fact that there's a transition on the ink bar which can cause the parent overflow while it is being measured.

These changes resolve the issue by measuring a different element.

Fixes #23724.

(cherry picked from commit 8cdd3d7)
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(MatTabHeader): Rouding problem when zooming will show PaginationControls when not needed

4 participants