diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index d003dab3dd25ab71015bf53a7ee65439d3962cc3..1b51b0e5df9c8980080fd69eea4a7fb6199b217e 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -547,7 +547,7 @@ $(document).ready(function() {
 	function resizeBreadcrumbs(firstRun) {
 		var width = $(this).width();
 		if (width != lastWidth) {
-			if (width < lastWidth || firstRun && width < breadcrumbsWidth) {
+			if ((width < lastWidth || firstRun) && width < breadcrumbsWidth) {
 				if (hiddenBreadcrumbs == 0) {
 					breadcrumbsWidth -= $(breadcrumbs[1]).get(0).offsetWidth;
 					$(breadcrumbs[1]).find('a').hide();