]> source.dussan.org Git - nextcloud-server.git/commit
Breadcrumb width calculation fix
authorVincent Petry <pvince81@owncloud.com>
Fri, 23 May 2014 17:02:50 +0000 (19:02 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 27 Jun 2014 09:11:34 +0000 (11:11 +0200)
commitec4cf96f0d4f170b21d77378e4f11b88b01aaebc
treedde1e495ee09e86f3ab7b213084c8766ba5533cf
parent8aa51a69fae60b7b4cb415d923a9978f5698fe0d
Breadcrumb width calculation fix

Rewrote the breadcrumb calculation to be more readable.

Breadcrumb now has a setMaxWidth() method to set the maximum allowed
width which is used to fit the breadcrumbs.

The breadcrumb width is now based on the container width, passed through
setMaxWidth() by the FileList class.

Now using fixed widths for the test crumbs to simulate consistent
widths across browsers which rendering engines might usually yield
different results.
apps/files/js/breadcrumb.js
apps/files/js/file-upload.js
apps/files/js/filelist.js
apps/files/tests/js/breadcrumbSpec.js
apps/files/tests/js/filelistSpec.js