Hi all,
How can I set the height in pe:codeMirror ?
I´ve tried: style="height: 100px !important;" but it seems it´s not working.
Any idea?
Thank you
pe:codeMirror set height?
Unfortunately you can't do it inline you have to do with CSS loaded on the page.
Code: Select all
<style type="text/css">
.CodeMirror {
height: 200px;
}
</style>
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
and if I would like to set the height to 100%?
doesn't work
Code: Select all
<style type="text/css">
.CodeMirror {
height: 100%;
}
</style>
Its probably 100% of the container object you have the codemirror in?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
Update: if I call
the scrollbars appear
Code: Select all
window.dispatchEvent(new Event('resize'));
Got it that might be an issue with the CodeMirror itself. You might have to call that to get it to realize it needs to render scrollbars.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 21 guests