nextcloud/apps/files/tests/js
Daniel Calviño Sánchez a1af18fa35 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-03-01 20:33:14 +01:00
..
appSpec.js Trigger events before and after a file action is executed 2017-12-19 18:33:34 +01:00
breadcrumbSpec.js Fix menu visibility 2018-03-01 20:33:14 +01:00
detailsviewSpec.js Make possible to know the registered detail views in a details view 2017-06-09 03:14:23 +02:00
favoritesfilelistspec.js Make it possible to filter by tags with REPORT method 2016-10-19 11:06:29 +02:00
favoritespluginspec.js Added unit tests for right sidebar 2015-08-07 01:22:43 +02:00
fileUploadSpec.js Upload autorename on client side 2016-11-02 22:15:03 +01:00
fileactionsSpec.js Trigger events before and after a file action is executed 2017-12-19 18:33:34 +01:00
fileactionsmenuSpec.js Add support to FileActionsMenu for icon class functions 2017-10-19 01:46:13 +02:00
filelistSpec.js Fix empty details view after renaming a file 2018-01-11 02:47:11 +01:00
filesSpec.js Add ignore_files to config, 2017-03-20 01:17:12 -06:00
filesummarySpec.js Display number of hidden files in files summary (#25870) 2016-08-29 14:47:41 +02:00
mainfileinfodetailviewSpec.js Hide favourite icon in details view if favourite action is not available 2018-01-05 19:06:06 +01:00
newfilemenuSpec.js Remove "Text file" entry in the "+" menu 2015-11-19 15:36:21 +01:00
tagspluginspec.js Remove "has-favorites" class from file list table 2017-10-19 01:46:13 +02:00