-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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%
Hi,
can you tell us which version of codemirror-wrapper you're using? Some example code?
Cheers, Maik
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;
padding-right: 0.3em;
padding-top: 0.4em;
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..
Hi,
we're talking about zk-codemirror (http://code.google.com/p/zk-codemirror/), right?
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; padding-right: 0.3em; padding-top: 0.4em; text-align: right; width: 2.2em; } </style> <codemirror height="100%" config="lineNumbers:true" /> </zk>
Cheers, Maik
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
Asked: 2011-05-31 01:31:05 +0800
Seen: 416 times
Last updated: Jun 06 '11