дзеркало
https://github.com/nextcloud/server.git
synced 2024-07-24 05:14:54 +02:00
refs #21263 round numbers when checking if breadcrumbs should be hidden
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
джерело
3ced8406a0
коміт
c4fcf4c0b2
@ -327,7 +327,7 @@
|
||||
// Note that the crumbs shown always overflow the parent width
|
||||
// (except, of course, when they all fit in).
|
||||
while (this.$el.find(this.hiddenCrumbSelector).length > 0
|
||||
&& this.getTotalWidth() <= this.$el.parent().width()) {
|
||||
&& Math.round(this.getTotalWidth()) <= Math.round(this.$el.parent().width())) {
|
||||
this._showCrumb();
|
||||
}
|
||||
|
||||
@ -343,7 +343,7 @@
|
||||
|
||||
// If container is smaller than content
|
||||
// AND if there are crumbs left to hide
|
||||
while (this.getTotalWidth() > availableWidth
|
||||
while (Math.round(this.getTotalWidth()) > Math.round(availableWidth)
|
||||
&& this.$el.find(this.crumbSelector).length > 0) {
|
||||
// As soon as one of the crumbs is hidden the menu will be
|
||||
// shown. This is needed for proper results in further width
|
||||
|
Завантаження…
Посилання в новій задачі
Block a user