Skip to content

Avoid the findResultsCount span taking up (vertical) space when hidden (PR 13261 follow-up) #14530

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

Merged
merged 2 commits into from
Feb 5, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

When the viewer becomes narrow, the PDFFindBar will (forcibly) wrap its elements to prevent it from extending to the full window width.
Currently, after PR #13261, this now leads to the findResultsCount span taking up vertical space unconditionally when the findbar is wrapped. To avoid a blank space being shown in this case, before searching has begun, place the findResultsCount span in a "message" rather than an "options" container.

…den (PR 13261 follow-up)

When the viewer becomes narrow, the `PDFFindBar` will (forcibly) wrap its elements to prevent it from extending to the full window width.
Currently, after PR 13261, this now leads to the `findResultsCount` span taking up vertical space *unconditionally* when the findbar is wrapped. To avoid a blank space being shown in this case, before searching has begun, place the `findResultsCount` span in a "message" rather than an "options" container.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2022

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/064e262f61de0c7/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/064e262f61de0c7/output.txt

Total script time: 4.64 mins

Published

@timvandermeij timvandermeij merged commit 48139a0 into mozilla:master Feb 5, 2022
@timvandermeij
Copy link
Contributor

Thank you for fixing this!

@Snuffleupagus Snuffleupagus deleted the findResultsCount-height branch February 6, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants