From c2c7dd5adfbc8fae1bec3bb33b2703a93ea86174 Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 6 Jun 2016 21:25:45 +0200 Subject: [PATCH] Fixed #303: editor contents collapsed when the parent div of the JSONEditor has no height set --- HISTORY.md | 2 ++ src/css/jsoneditor.css | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index cd04e65..181c1c2 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -5,6 +5,8 @@ https://github.com/josdejong/jsoneditor ## not yet released, version 5.5.6 +- Fixed #303: editor contents collapsed when the parent div of the JSONEditor + has no height set. - Improved example 04_load_and_save.html. Thanks @RDCH106. diff --git a/src/css/jsoneditor.css b/src/css/jsoneditor.css index 21088c7..f5017df 100644 --- a/src/css/jsoneditor.css +++ b/src/css/jsoneditor.css @@ -1,4 +1,8 @@ +div.jsoneditor { + +} + div.jsoneditor-field, div.jsoneditor-value, div.jsoneditor-readonly { @@ -206,6 +210,11 @@ div.jsoneditor-outer { box-sizing: border-box; } +textarea.jsoneditor-text, +.ace-jsoneditor { + min-height: 150px; +} + div.jsoneditor-tree { width: 100%; height: 100%;