nextcloud/apps
Daniel Calviño Sánchez 10e9eeec45 Fix menu visibility
The crumb for the menu was shown like any other crumb when calling
"_showCrumb", but it was also shown when other crumbs were hidden
without taking into account the available width. This caused several
related problems, like the breadcrumbs taking too much space when the
menu was sometimes shown after the rest of the crumbs were adjusted to
the available width, or the menu being shown instead of the last crumb
even if there was room for it when the available width was increased.

Now the menu is always hidden before starting the resizing of the crumbs
to ensure that whether it was previously shown or not does not affect
the result. In a similar way, the menu will no longer be shown by
"_showCrumb", as it is not a regular crumb that has to be shown simply
if there is enough room. The menu is now shown as soon as any other
crumb is hidden; this ensures that the menu width will be taken into
account in further width checks. As when _updateMenu" is called it no
longer needs to take care of showing the menu this fixes the issue
revealed when fixing the test setup in the previous commit.

Finally, this implicitly fixes the failure in the breadcrumbs tests when
run on Firefox, as it was caused by the menu interfering in the
calculations of the other crumbs when increasing the width.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-28 15:03:26 +01:00
..
admin_audit Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
comments Merge pull request #8355 from nextcloud/fix-comments-num-index 2018-02-26 17:12:57 +01:00
dav Loglevel is an int 2018-02-27 10:45:35 +01:00
encryption [tx-robot] updated from transifex 2018-02-24 01:12:16 +00:00
federatedfilesharing [tx-robot] updated from transifex 2018-02-22 01:12:26 +00:00
federation [tx-robot] updated from transifex 2018-02-27 01:14:26 +00:00
files Fix menu visibility 2018-02-28 15:03:26 +01:00
files_external [tx-robot] updated from transifex 2018-02-28 01:12:31 +00:00
files_sharing Merge pull request #8569 from nextcloud/cleanup_unused_static_sharing 2018-02-28 13:09:06 +01:00
files_trashbin Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
files_versions Use normal header() calls instead of private method calls 2018-02-19 09:40:25 +01:00
lookup_server_connector Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
oauth2 [tx-robot] updated from transifex 2018-02-27 01:14:26 +00:00
provisioning_api Fix tests 2018-02-27 22:03:40 +01:00
sharebymail [tx-robot] updated from transifex 2018-02-28 01:12:31 +00:00
systemtags Merge pull request #8355 from nextcloud/fix-comments-num-index 2018-02-26 17:12:57 +01:00
testing Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
theming [tx-robot] updated from transifex 2018-02-28 01:12:31 +00:00
twofactor_backupcodes [tx-robot] updated from transifex 2018-02-21 01:12:10 +00:00
updatenotification [tx-robot] updated from transifex 2018-02-28 01:12:31 +00:00
user_ldap [tx-robot] updated from transifex 2018-02-28 01:12:31 +00:00
workflowengine Make the Outlook and Thunderbird addons identifyable 2018-02-27 14:37:32 +01:00