kdelibs/khtml

Leo Savernik l.savernik at aon.at
Wed Oct 22 02:09:33 CEST 2003


Am Dienstag, 21. Oktober 2003 23:17 schrieb Dirk Mueller:
> On Tuesday 21 October 2003 18:20, Leo Savernik wrote:
> > This breaks selection of images.
>
> can you give me a testcase? it works fine here. Note with the old code it
> selected an image when you clicked on it and then started dragging.

Ok, there may have been some issues with the old code, but now the flow of 
selection is disrupted. I don't speak about starting a selection within an 
image: In this case, it should be dragged, not selected as you rightfully 
state.

But beginning before/after the image and extending the selection is not 
seamless any more.

Testcase:
data:text/html,<p>wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww<p><img%20width=300%20height=100></p><p>wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww

Start the selection on the far right side of the image (outside of the image) 
and move the mouse beyond the following text. Neither the image nor the text 
is selected.

Now hit Ctrl+A, and try to deselect everything by clicking to the right 
outside of the image. It won't be deselected.

And the biggest annoyance is that there's no way to place the caret either to 
the left or right border of the image by using the mouse.

Please let me fix that, or give me a sensible advice how to properly fix those 
issues if you didn't like the old solution.

Real-world testcase:
http://selfhtml.teamone.de/css/eigenschaften/innenabstand.htm
§ "Allgemeines zum Innenabstand"

>
[...]
> This is btw how other browsers behave as well, and you can still select an
> image by clicking left of it and start dragging right (or the other way
> around).

Indeed, and I wanted to resemble that, but exactly this is broken now whenever 
images happen to be the first/last/only element of a linebox.

mfg
	Leo


More information about the Khtml-devel mailing list