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

A few small tweaks of the SecondaryToolbar code #3824

Merged
merged 1 commit into from
Oct 18, 2013
Merged

A few small tweaks of the SecondaryToolbar code #3824

merged 1 commit into from
Oct 18, 2013

Conversation

Snuffleupagus
Copy link
Collaborator

This patch makes the following small changes to the SecondaryToolbar code:

  • Passes in a reference to PresentationMode, instead of using the global.
  • Removes the isOpen getter, since it should be sufficient to just check SecondaryToolbar.opened. This is also analogous to, for example: PDFFindBar and PasswordPrompt.
  • Adds a check that the buttonContainer is defined when setMaxHeight is called. This prevents an error when reloading the viewer in "Responsive Design Mode" in Firefox.

@waddlesplash
Copy link
Contributor

👍

@timvandermeij
Copy link
Contributor

Should be good to go after this has been addressed.

@Snuffleupagus
Copy link
Collaborator Author

@timvandermeij Thanks for noticing, I have no idea how I missed that!

/botio-windows preview

@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/ed660415ab3f6e5/output.txt

timvandermeij added a commit that referenced this pull request Oct 18, 2013
A few small tweaks of the SecondaryToolbar code
@timvandermeij timvandermeij merged commit fa03a77 into mozilla:master Oct 18, 2013
@timvandermeij
Copy link
Contributor

Nice, thanks!

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.

4 participants