# Codemirror

chaitu405
93 1

Border for the code mirror is not positioned correctly.Can anyone tell me how to change this.

Also it was not accepting the height as 100%

delete retag edit

## 5 Replies

mjablonski
1284 3 5
http://www.jease.org/

Hi,

can you tell us which version of codemirror-wrapper you're using? Some example code?

Cheers, Maik

chaitu405
93 1

Hi,

I was using Codemirror 1.0 and i have just checked it and found that the issue is because of the css i have added to it for getting the line numbers

.CodeMirror-line-numbers {
background-color: #EEEEEE;
color: #AAAAAA;
font-family: monospace;
font-size: 10pt;
line-height: normal;
text-align: right;
width: 2.2em;
}

I have just tested removing this and it is working fine for me.But it should work even if i use this css..

mjablonski
1284 3 5
http://www.jease.org/

Hi,

The following code works for me, at least I don't see any problem. Can you provide an example which shows the issue?

<zk>
<style>
.CodeMirror-line-numbers {
background-color: #EEEEEE;
color: #AAAAAA;
font-family: monospace;
font-size: 10pt;
line-height: normal;
text-align: right;
width: 2.2em;
}
</style>
<codemirror height="100%" config="lineNumbers:true" />
</zk>


Cheers, Maik

chaitu405
93 1

Hi Maik,

Sorry for the delay . My problem with the border was solved by removing the css from the jar and using it as u have mentioned.
But still I couldn't get the height and width to 100%

mjablonski
1284 3 5
http://www.jease.org/

Strange... works for me, maybe it's related to the layout where are you embedding Codemirror. Can you post a simlpe example which shows the problem?

Cheers, Maik

[hide preview]