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

Apply padding on <select>, not the button #6076

Merged
merged 1 commit into from
Jun 9, 2015

Conversation

TimothyGu
Copy link
Contributor

Fixes clicking the edge of the zoom selection dropdown button.

@timvandermeij
Copy link
Contributor

The dropdown is now too close to the loading bar. Maybe it's because the top padding is increased?

After you have adjusted that, could you squash the commits into one? See https://github.com/mozilla/pdf.js/wiki/Squashing-Commits on how to do that easily.

@TimothyGu
Copy link
Contributor Author

The dropdown is now too close to the loading bar. Maybe it's because the top padding is increased?

This is an intentional change. IMO it looks really odd to have the +/- buttons fairly big and centered vertically, then have the dropdown right next to it not aligned with the buttons:

image

After you have adjusted that, could you squash the commits into one?

Absolutely. I intentionally used separate commits since they technically are separate changes.

@Snuffleupagus
Copy link
Collaborator

This is an intentional change. IMO it looks really odd to have the +/- buttons fairly big and centered vertically, then have the dropdown right next to it not aligned with the buttons:

As @timvandermeij alluded to above, this PR unfortunately "breaks" in Firefox.
Given that the primary use-case for the default viewer is to be the UI for the built-in PDF viewer in Firefox, we cannot accept a PR that regresses Firefox (even if it would happen to fix something in other browsers). This is what the latest version of this PR looks like in Firefox 41:
broken_zoom

@TimothyGu
Copy link
Contributor Author

@Snuffleupagus I totally understand. However I cannot reproduce your issue locally on Firefox 38.0 as bundled with Ubuntu. Testing Windows right now. Yes I can reproduce it now. Odd.

But regardless I reverted the controversial padding change so it should be as it was.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jun 4, 2015

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/1cce7d0a8ec8209/output.txt

@TimothyGu
Copy link
Contributor Author

Ping; any further comments?

timvandermeij added a commit that referenced this pull request Jun 9, 2015
Apply padding on <select>, not the button
@timvandermeij timvandermeij merged commit 5a6ab15 into mozilla:master Jun 9, 2015
@timvandermeij
Copy link
Contributor

Thank you for the patch!

@TimothyGu TimothyGu deleted the button-fix branch June 9, 2015 23:56
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.

4 participants