Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Why is ruler offset by lineHeight ?

On Thu, Aug 18, 2011 at 10:48 AM, Silenio Quarti <Silenio_Quarti@xxxxxxxxxx> wrote:

Every ruler div has one extra div at the top (firstChild before any lines). This div is used to determine the width of the ruler. Its height is "lineHeight".  The ruler is offset by "lineHeight" to hide this div above the editor. 

Ok, thanks, that's fine, I can just add +1 to the line to move my annotation down. Now how can I control the width of that div?  

There is another problem, one of the div gets line-height = 1px. I have to explicitly set line-height=17px to see my annotation. I would like set the value dynamically rather than to a constant.  Where can I get line-height?

Why do you need to set of the ruler div?

Only to compensate for the the extra line.  Now I do that with the +1.


Back to the top