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

Fix issue with resizing the zoom box width - follow-up of #2816 #3258

Merged
merged 1 commit into from Jun 3, 2013
Merged

Fix issue with resizing the zoom box width - follow-up of #2816 #3258

merged 1 commit into from Jun 3, 2013

Conversation

Snuffleupagus
Copy link
Collaborator

This fixes an issue with the automatic resizing of the zoom box width.
Currently, if the viewer is small enough that the zoom box isn't visible on load, the zoom box resizing doesn't work. This means that if the viewer is then enlarged, it will look like this:
zoom-box-issue

This PR fixes this, so that the zoom box will only be resized on load when it's actually visible.

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/032ce762fd79697/output.txt

@pdfjsbot
Copy link

@timvandermeij
Copy link
Contributor

@Snuffleupagus: that's funny, I mentioned this yesterday in another issue: #3252. Great that you've solved this; means that issue is also partly solved. :)

@Snuffleupagus
Copy link
Collaborator Author

To make it easier to maintain the code, I replaced the parameters controlling the width of the zoom box with constants placed at the top of viewer.js.
I also found that in IE and Chrome, the native drop down button isn't completely hidden currently, so this PR has been updated to fix that as well.

/botio-windows preview

@pdfjsbot
Copy link

pdfjsbot commented Jun 2, 2013

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/7d739d47709c53c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 2, 2013

@timvandermeij
Copy link
Contributor

Using your latest preview, it has become better, but with responsive design view I get the following. This is because the text 'Automatisch zoomen' is longer than in most languages I guess. So there should be a way to take variable lengths into account... :-(

naamloos

@Snuffleupagus
Copy link
Collaborator Author

@timvandermeij This PR doesn't really change anything with regards to the current resizing of the zoom box, it just fixes a small bug and refactors some of the code. So I don't really understand how this PR is to blame!?

Also, I think that I solved most of these overlap issues in my patches for #2792. That said, in the Dutch l10n the zoom box is so huge, that these changes probably won't help completely. The problem is that if we change this to work perfectly in Dutch, it would look bad in all (or almost all) other languages since it would introduce a lot of wasted space in the toolbar.
I don't speak Dutch, but would it be possible to change the translation somewhat to mitigate the issue?

Ninja edit: I just tried the latest Firefox extension from #2792, and it's almost perfect even in Dutch!
As a said previously (#2792 (comment)), I think that as long as it looks and works OK in Firefox, I personally can live with a few small issues in the web viewer.

@timvandermeij
Copy link
Contributor

@Snuffleupagus: I just assumed that this was related to this PR, but that was wrong I guess. There is not really a way to make the text smaller. However, it does indeed work perfectly fine in #2792, so all issues will be resolved if both PRs land. Thank you for your explanation! :)

yurydelendik added a commit that referenced this pull request Jun 3, 2013
Fix issue with resizing the zoom box width - follow-up of #2816
@yurydelendik yurydelendik merged commit 6bd5fed into mozilla:master Jun 3, 2013
@yurydelendik
Copy link
Contributor

thank you

@Snuffleupagus Snuffleupagus deleted the zoom-select-width-followup branch June 3, 2013 15:46
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.

None yet

4 participants