Giter Site home page Giter Site logo

Comments (14)

agborkowski avatar agborkowski commented on September 22, 2024 10

works too:

:host ::ng-deep json-editor,
:host ::ng-deep json-editor .jsoneditor,
:host ::ng-deep json-editor > div,
:host ::ng-deep json-editor jsoneditor-outer {
  height: 500px;
}

works with 100% nice its extendable w/o overflow scroll

from ang-jsoneditor.

johnny12150 avatar johnny12150 commented on September 22, 2024 3

Same as jackrvaughan.
None of the above methods seem to work when the editor is in both code and text mode.


For code mode I use this in styles.css

.ace_editor.ace-jsoneditor {
  min-height: 500px;
}

from ang-jsoneditor.

jackrvaughan avatar jackrvaughan commented on September 22, 2024 1

None of these solutions seem to work for me when the editor is in code mode.

from ang-jsoneditor.

MartijnJanJaap avatar MartijnJanJaap commented on September 22, 2024 1

I have tried all the above solutions. Nothing seems to work for me.
I am using version 3.1.0 with angular version 15.
Update: I had to edit styles.css instead of my component specific css.

from ang-jsoneditor.

agborkowski avatar agborkowski commented on September 22, 2024

im searching solutions too :) i think check css properties...

from ang-jsoneditor.

mariohmol avatar mariohmol commented on September 22, 2024

HI.. sorry about too long to anwwer.. will look today and get back here

from ang-jsoneditor.

niteshkatare avatar niteshkatare commented on September 22, 2024

Even I am looking for the solution for height issue.

from ang-jsoneditor.

mariohmol avatar mariohmol commented on September 22, 2024

What i did in my project <json-editor class="col-md-12" #editorExample style="min-height: 300px;" [options]="editorOptionsData" [data]="dataStructure"></json-editor> See if that works for you!

from ang-jsoneditor.

mapleflow avatar mapleflow commented on September 22, 2024

works by overwrite.

// all height not work for me, i use css works.
// <div style="height:300px;"><json-editor></json-editor></div>
// <json-editor style="height:300px;"></json-editor>
@import "~jsoneditor/dist/jsoneditor.min.css";
textarea.jsoneditor-text{min-height:350px;}

from ang-jsoneditor.

mariohmol avatar mariohmol commented on September 22, 2024

I updated the Readme to have this suggestions:

Thanks!!!

from ang-jsoneditor.

mariohmol avatar mariohmol commented on September 22, 2024

HI! thanks @johnny12150

is this code you did fix it? cause we can put it in docs

from ang-jsoneditor.

johnny12150 avatar johnny12150 commented on September 22, 2024

@mariohmol
Yes! It works for code mode only.

from ang-jsoneditor.

mariohmol avatar mariohmol commented on September 22, 2024

great!! I included in readme!

from ang-jsoneditor.

gitsunny404 avatar gitsunny404 commented on September 22, 2024

I have tried all the above solutions. Nothing seems to work for me. I am using version 3.1.0 with angular version 15. Update: I had to edit styles.css instead of my component specific css.

@import "~jsoneditor/dist/jsoneditor.min.css";
textarea.jsoneditor-text {
min-height: 50vh;
}
.jsoneditor {
background-color: #f1f1f1;
padding-block: 1rem;
}
.jsoneditor-tree {
background-color: #f1f1f1;
}
td:nth-child(2).jsoneditor-tree {
text-wrap: nowrap;
}
try this code you will get the customization options in css

from ang-jsoneditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.