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%;