Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented Jan 8, 2018

The share drop down is shared between the gallery and the slideshow. When the share button of the gallery is clicked the share drop down is shown only if it is not already being shown. However, if the slideshow is closed while the drop down is being shown the gallery considers that the drop down is being shown (even if it is not visible to the user), so clicking on the share button does nothing in that case. Now the drop down is explicitly hidden when the slideshow is closed to ensure that the share button of the gallery works as expected.

Note that the problem was really minor because only the first click after closing the slideshow failed. As that click was not done on the drop down the drop down was closed, so the next time that the button was clicked the drop down was shown as expected.

The share drop down is shared between the gallery and the slideshow.
When the share button of the gallery is clicked the share drop down is
shown only if it is not already being shown. However, if the slideshow
is closed while the drop down is being shown the gallery considers that
the drop down is being shown (even if it is not visible to the user), so
clicking on the share button does nothing in that case. Now the drop
down is explicitly hidden when the slideshow is closed to ensure that
the share button of the gallery works as expected.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added bug Something isn't working low Low priority labels Jan 8, 2018
@danxuliu danxuliu requested a review from oparoz January 8, 2018 00:22
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@MorrisJobke MorrisJobke merged commit 16128b9 into master Jan 22, 2018
@MorrisJobke MorrisJobke deleted the hide-the-share-drop-down-when-closing-the-slideshow branch January 22, 2018 16:46
@MorrisJobke MorrisJobke added this to the Nextcloud 14 milestone Jan 22, 2018
@MorrisJobke
Copy link
Member

Backported and tested: stable13 714a6a2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working low Low priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants