0

Codemirror

asked 2011-05-31 01:31:05 +0800

chaitu405 gravatar image chaitu405
93 1

updated 2011-05-31 01:50:43 +0800

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 flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2011-06-06 07:02:58 +0800

mjablonski gravatar image 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

link publish delete flag offensive edit

answered 2011-06-06 01:18:15 +0800

chaitu405 gravatar image 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%

link publish delete flag offensive edit

answered 2011-05-31 10:50:22 +0800

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

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

link publish delete flag offensive edit

answered 2011-05-31 02:20:10 +0800

chaitu405 gravatar image 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;
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..

link publish delete flag offensive edit

answered 2011-05-31 02:16:29 +0800

mjablonski gravatar image 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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-31 01:31:05 +0800

Seen: 416 times

Last updated: Jun 06 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More