Patch for text-overflow:ellipsis

Allan Sandfeld Jensen kde at carewolf.com
Sun Nov 12 23:08:02 GMT 2006


On Sunday 12 November 2006 23:50, Leo Savernik wrote:
> Well, offsetForPoint is optimised for vertical caret navigation, so by
> about 50% it returns the next character. Subtracting one offset will at
> least ensure that characters never spill into the ellipsis.
>
Ah. Maybe I should use the selection functions instead then.

> Btw, have you tested ellipsis with caret navigation? It needn't work
> flawlessly, but it shouldn't crash either.
>
Yes, it doesn't crash. Though it seems carets can navigate the hidden part of 
the text and even select it. This however is also true for normal 
overflow:hidden.

`Allan




More information about the kfm-devel mailing list