From: Vincent Vanwaelscappel Date: Tue, 3 Dec 2019 11:39:37 +0000 (+0100) Subject: wait #3234 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3247519234a971ad2392dee891f1cbda610a044d;p=fluidbook-html5.git wait #3234 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 7cbad8ce..45b39c92 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -425,7 +425,16 @@ FluidbookMenu.prototype = { var v = this.fluidbook.chapters.getView(submenu); var menuId = 'mview-chapters-' + v.sub; - var view = '
' + this.closeButton() + '

' + v.title + '

'; + var c = ''; + if (this.fluidbook.datas.chaptersCaptionDisplay === false) { + c += ' h0'; + } + var view = '
' + this.closeButton(); + if (this.fluidbook.datas.chaptersCaptionDisplay !== false) { + view += '

' + v.title + '

'; + } + + view += '
'; view += '
'; view += v.view; view += '
'; @@ -587,6 +596,7 @@ FluidbookMenu.prototype = { switch (m.data('menu')) { case 'chapters': + hasCaption = this.fluidbook.datas.chaptersCaptionDisplay !== false; this.fluidbook.datas.chaptersColumns = Math.max(1, Math.min(6, this.fluidbook.datas.chaptersColumns)); if (this.fluidbook.datas.chaptersCascade) { this.fluidbook.datas.chaptersColumns = 1; @@ -599,18 +609,18 @@ FluidbookMenu.prototype = { w = Math.min(450, this.fluidbook.datas.chaptersColMaxWidth); } fullscreen = (w >= ww * 0.9); - if(fullscreen){ - w=ww; + if (fullscreen) { + w = ww; } if (this.fluidbook.datas.chaptersCascade) { h = hh * 0.8; forceHeight = true; } - if(this.fluidbook.datas.chaptersColumns > 1){ - if(w 1) { + if (w < this.fluidbook.datas.chaptersColMaxWidth * this.fluidbook.datas.chaptersColumns) { $('.mview[data-menu=chapters] ul.chapters').addClass('onecolumn'); - }else{ + } else { $('.mview[data-menu=chapters] ul.chapters').removeClass('onecolumn'); } } diff --git a/style/fluidbook.less b/style/fluidbook.less index d592d088..5ab214d9 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -1688,6 +1688,11 @@ html.ios body.portrait #interface { width: 100%; height: 60px; + &.h0 { + height: 0; + padding: 0; + } + h2 { font-size: 16px; line-height: 16px;