[Libreoffice-commits] online.git: loleaflet/css loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Mar 13 17:52:30 UTC 2019


 loleaflet/css/toolbar.css        |    6 ++++--
 loleaflet/src/control/toolbar.js |    2 +-
 loleaflet/src/map/Map.js         |    4 +++-
 3 files changed, 8 insertions(+), 4 deletions(-)

New commits:
commit e62c4ba4dcc3a52792c99f614649481ab9a396a6
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Mar 13 18:48:09 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Mar 13 18:52:12 2019 +0100

    Don't show closebutton on menubar toggle
    
    Change-Id: I57dbca9aac09445c0990770565682adc1da1db40
    Reviewed-on: https://gerrit.libreoffice.org/69222
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Tested-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/loleaflet/css/toolbar.css b/loleaflet/css/toolbar.css
index 9e2450c5a..c1b3ebe67 100644
--- a/loleaflet/css/toolbar.css
+++ b/loleaflet/css/toolbar.css
@@ -128,7 +128,6 @@ w2ui-toolbar {
     width: 28px;
     height: 28px;
     background-color: white;
-    display: none;
 }
 
 #closebutton {
@@ -145,7 +144,10 @@ w2ui-toolbar {
     background-color: #eee;
 }
 
-.closebuttonimage{ background: url('images/closedoc.svg') no-repeat center !important; }
+.closebuttonimage {
+    display: none;
+    background: url('images/closedoc.svg') no-repeat center !important;
+}
 
 #tb_actionbar_item_left {
     width: 45%;
diff --git a/loleaflet/src/control/toolbar.js b/loleaflet/src/control/toolbar.js
index dc2a54651..bfa4e5fde 100644
--- a/loleaflet/src/control/toolbar.js
+++ b/loleaflet/src/control/toolbar.js
@@ -2277,7 +2277,7 @@ $(document).ready(function() {
 	if (!closebutton) {
 		$('#closebuttonwrapper').hide();
 	} else if (closebutton && !L.Browser.mobile) {
-		$('#closebuttonwrapper').show();
+		$('.closebuttonimage').show();
 	}
 
 	$('#closebutton').click(function() {
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 995376243..eab327366 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -1480,7 +1480,9 @@ L.Map = L.Evented.extend({
 		}
 		else {
 			$('.main-nav').css({'display': 'none'});
-			$('#closebuttonwrapper').css({'display': 'none'});
+			if (closebutton) {
+				$('#closebuttonwrapper').css({'display': 'none'});
+			}
 
 			obj = $('.fold');
 			obj.removeClass('w2ui-icon fold');


More information about the Libreoffice-commits mailing list