]> _ Git - fluidbook-html5.git/commitdiff
fix #2091 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 24 Jul 2018 16:04:45 +0000 (18:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 24 Jul 2018 16:04:45 +0000 (18:04 +0200)
js/libs/fluidbook/fluidbook.menu.js
js/libs/fluidbook/menu/fluidbook.index.js
style/fluidbook.less

index b60204cab14f29b981c3a5022d0b549a4798594a..16861d3f388fcf522ff4f123a00065ab0d6f8ea5 100644 (file)
@@ -520,6 +520,7 @@ FluidbookMenu.prototype = {
                 break;
             case 'index':
                 fullscreen = true;
+                $("#indexViewHolder").css('width',Math.floor(ww / 230) * 230);
                 break;
             case 'share':
                 w = 200;
index 7badda997c9e2b0f0ee7a5e67f47d0bf955b6cc8..b2b6f7ac7d70475bb9ac240f8981a796ca71b06b 100644 (file)
@@ -23,7 +23,7 @@ FluidbookIndex.prototype = {
 
     getNormalView: function () {
         if (this.normalHTML == '') {
-            this.normalHTML += '<div class="content"><div id="indexView">';
+            this.normalHTML += '<div class="content"><div id="indexView"><div id="indexViewHolder">';
             var j = 0;
             var ix1 = '', ix2 = '', ix = '';
             var c = '';
@@ -83,10 +83,7 @@ FluidbookIndex.prototype = {
                 this.normalHTML += '<div class="doubleThumb' + c + '" page="' + i + '" data-pages="' + pages.join(',') + '">' + ix;
                 this.normalHTML += '</div>';
             }
-            for (i = 0; i < 5; i++) {
-                this.normalHTML += '<div class="padding"></div>';
-            }
-            this.normalHTML += '</div></div>';
+            this.normalHTML += '</div></div></div>';
         }
 
         return this.normalHTML;
index 8175ccb889c6906026a50a5f521c816cca371d90..0a06fd49da4e5462b3964ec2ae96c88533cb4c6a 100644 (file)
@@ -1508,7 +1508,10 @@ form input[type="text"], form input[type="email"] {
 }
 
 #indexView {
-       margin: auto;
+       #indexViewHolder {
+               margin: auto;
+               text-align: left;
+       }
        .doubleThumb, .padding {
                display: inline-block;
                padding: 10px 10px 25px 10px;