From 2bdf5e4840c514e43aec42156a67a5b237c1622e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Thu, 17 Dec 2020 10:29:15 +0100 Subject: [PATCH] jsdialog: fix textarea position in mobile-wizard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idc77992b477acd790cf4d4bffe2589c530b4cb09 Signed-off-by: Szymon Kłos --- loleaflet/css/mobilewizard.css | 3 ++- loleaflet/src/control/Control.JSDialogBuilder.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/loleaflet/css/mobilewizard.css b/loleaflet/css/mobilewizard.css index ed291cc2f..431c0fb62 100644 --- a/loleaflet/css/mobilewizard.css +++ b/loleaflet/css/mobilewizard.css @@ -904,7 +904,8 @@ input[type='checkbox'][disabled] { width: -webkit-fill-available !important; } -.ui-edit.mobile-wizard { +.ui-edit.mobile-wizard, +.ui-textarea.mobile-wizard { /* , textarea was also here assign but it was messing up with all textareas (annotations on desktop and vex on mobile): - added 93038: jsdialog: style dialogs; a5016d547c6242f6f9b28748b5724b0bc10cdb67 diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index 37eed8c81..c836d3efe 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -1416,7 +1416,7 @@ L.Control.JSDialogBuilder = L.Control.extend({ if (data.cursor && (data.cursor === 'false' || data.cursor === false)) controlType = 'p'; - var edit = L.DomUtil.create(controlType, '', parentContainer); + var edit = L.DomUtil.create(controlType, 'ui-textarea ' + builder.options.cssClass, parentContainer); if (controlType === 'textarea') edit.value = builder._cleanText(data.text);