loleaflet/css/loleaflet.css   |    2 +-
 loleaflet/css/spreadsheet.css |   19 +++++++++++++++++++
 loleaflet/js/toolbar.js       |   18 ++++++++++--------
 3 files changed, 30 insertions(+), 9 deletions(-)

New commits:
commit c3bdf30b31878bdeb9e2085034a9e8f0424ae8cf
Author:     Henry Castro <[email protected]>
AuthorDate: Tue Sep 11 21:57:25 2018 -0400
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Mon Nov 19 12:52:02 2018 +0200

    loleaflet: mobile: adjust spreadsheet positions
    
    Change-Id: Iad33a6831714f441cd56abc1f83c6fd3ce2b5980

diff --git a/loleaflet/css/loleaflet.css b/loleaflet/css/loleaflet.css
index 01a3830c6..652f6ac5a 100644
--- a/loleaflet/css/loleaflet.css
+++ b/loleaflet/css/loleaflet.css
@@ -86,12 +86,12 @@ body {
     #presentation-controls-wrapper {
        display: none;
     }
-
     #document-container.parts-preview-document {
        left: 0px !important;
     }
     #document-container.spreadsheet-document {
        top: 93px !important;
+       bottom: 36px !important;
     }
     #document-container.spreadsheet-document.readonly {
        top: 50px !important;
diff --git a/loleaflet/css/spreadsheet.css b/loleaflet/css/spreadsheet.css
index 01f0b0bd2..7a42a3106 100644
--- a/loleaflet/css/spreadsheet.css
+++ b/loleaflet/css/spreadsheet.css
@@ -200,3 +200,22 @@
        background-size: 100% 100%;
        background-repeat: no-repeat;
        }
+
+@media (max-width: 767px) {
+       #spreadsheet-toolbar {
+               bottom: 0;
+       }
+
+       .spreadsheet-tabs-container {
+               bottom: 0;
+       }
+
+       #spreadsheet-row-column-frame {
+               top: 73px;
+               bottom: 36px;
+       }
+
+       #spreadsheet-row-column-frame.readonly {
+               top: 30px;
+       }
+}
diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js
index e5439c7e9..df7f9cbf4 100644
--- a/loleaflet/js/toolbar.js
+++ b/loleaflet/js/toolbar.js
@@ -1511,14 +1511,16 @@ function onCommandStateChanged(e) {
        }
        else if (commandName === '.uno:StatusBarFunc') {
                var item = statusbar.get('StateTableCellMenu');
-               item.selected = [];
-               // Check 'None' even when state is 0
-               if (state === '0') {
-                       state = 1;
-               }
-               for (var it = 0; it < item.items.length; it++) {
-                       if (item.items[it].id & state) {
-                               item.selected.push(item.items[it].id);
+               if (item) {
+                       item.selected = [];
+                       // Check 'None' even when state is 0
+                       if (state === '0') {
+                               state = 1;
+                       }
+                       for (var it = 0; it < item.items.length; it++) {
+                               if (item.items[it].id & state) {
+                                       item.selected.push(item.items[it].id);
+                               }
                        }
                }
        }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to