Menu

#42 Annotations apear for next char at half way point of current

v0.4.5
closed-fixed
bogleg
5
2006-03-07
2006-02-16
No

Annotations apear for next char at the half way point
of current char that the mouse is over. There for while
the cursor is still over a char the next char is the
one being annotated. It seems to be at exactly the 50%
point where the change occurs at 49% through a char it
still displays the correct annotation.

Discussion

  • bogleg

    bogleg - 2006-03-06

    Logged In: YES
    user_id=1223911

    Yeah, I noticed this in the very beginning. However, I
    think it's a SWT StyledText widget thing and I'm not sure
    how to fix it.

     
  • Charles Bluett

    Charles Bluett - 2006-03-07

    Logged In: YES
    user_id=892879

    I'm pretty sure it comes from the x value of
    getOffsetAtLocation. Perhapps reducing this value by half
    the text width?

     
  • bogleg

    bogleg - 2006-03-07

    Logged In: YES
    user_id=1223911

    Fixed in 0.4.7.

    Thanks Charles. You pointed me in the right direction. I
    found that actually subtracting the x value by the entire
    text width seems to give pretty nice results.

     
  • bogleg

    bogleg - 2006-03-07
    • status: open --> closed-fixed
     

Log in to post a comment.