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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 4 11:19:35 UTC 2018


 loleaflet/src/control/Control.LokDialog.js |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 87299bad4dea7cd7279280fa385c32dd54314298
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sun Oct 28 22:29:21 2018 -0400
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Sun Nov 4 13:19:06 2018 +0200

    leaflet: correct dialog width
    
    Change-Id: I28f80f8f309986d562e84b6797d9dbbbbd40bd20

diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 7684aff2b..7f9c162ff 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -251,10 +251,10 @@ L.Control.LokDialog = L.Control.extend({
 		if (!title)
 			dialogClass += ' lokdialog_notitle';
 
-		var that = this,
-		    size = this._map.getSize();
+		var that = this;
+		var size = this._map.getSize();
 		$(dialogContainer).dialog({
-			minWidth: size.x,
+			minWidth: Math.min(width, size.x),
 			width: Math.min(width, size.x),
 			maxHeight: $(window).height(),
 			height: 'auto',


More information about the Libreoffice-commits mailing list