From c5f08830da3fa9aec9c4074c9167dbeae468189a Mon Sep 17 00:00:00 2001
From: Henning Leutz <leutz@pcsg.de>
Date: Tue, 12 Sep 2017 13:39:45 +0200
Subject: [PATCH] fix: only image width wird gesetzt

---
 bin/Editor.js | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/bin/Editor.js b/bin/Editor.js
index 79f74c5..a1444ab 100644
--- a/bin/Editor.js
+++ b/bin/Editor.js
@@ -710,18 +710,18 @@ define('package/quiqqer/ckeditor4/bin/Editor', [
                                                         fileData.image_width,
                                                         500
                                                     );
-
-                                                    HeightInput.value = result.var1;
-                                                    WidthInput.value  = result.var2;
-
+                                                    // es darf keine image height gesetzt
+                                                    // da das Bild sonst im mobile view sich verzieht
+                                                    // HeightInput.value = result.var1;
+                                                    WidthInput.value = result.var2;
                                                 } else {
-                                                    HeightInput.value = fileData.image_height;
-                                                    WidthInput.value  = fileData.image_width;
+                                                    // HeightInput.value = fileData.image_height;
+                                                    WidthInput.value = fileData.image_width;
                                                 }
 
-                                                if (!fileData.image_height) {
-                                                    HeightInput.value = '';
-                                                }
+                                                // if (!fileData.image_height) {
+                                                //     HeightInput.value = '';
+                                                // }
 
                                                 if (!fileData.image_width) {
                                                     WidthInput.value = '';
-- 
GitLab