Version: (using KDE 4.2.1) Compiler: gcc (Debian 4.3.3-5) 4.3.3 OS: Linux Installed from: Debian testing/unstable Packages When I specify to which element the browser should jump to it scrolls the page vertical until the element is at the top position of the page. This is the expected result and the same on all browser I tested. The problem is that is not the behaviour in horizontal scrolling. It will only show a minimal part of the element. Firefox and Internet Explorer for example will try to scroll the page horizontal until the whole element is shown or the left position is at the left border of the window. Opera seems to do the same but I did only a quick test. Webkit for example will show the same "weird" behavior as khtml. I will attach an example later.
Created attachment 31990 [details] Test to illustrate ankor behavior
Created attachment 31992 [details] Difference in behavior between khtml and firefox Tested page: http://bugsfiles.kde.org/attachment.cgi?id=31990#position Reference Browser Iceweasel/Firefox: Mozilla Iceweasel 3.0.7, Copyright (c) 1998 - 2009 mozilla.org If you cannot reproduce the result with khtml then try to scroll the page until only a part of the element is shown and then press enter in the addressbar. If the element is not shown at all it seems to work and khtml shows the correct (like other browsers) behavior. If you create a new tab and than enter the url in the addressbar than it will show most of the element but the right border is missing. If the window is too small to show the whole element than it will show something in the middle of the element but not left nor right border. If you than press enter in the addressbar it will show you the expected left border
I repeated the tests with Konqueror 4.2.92 (4.3 >= 20090617 , svn r984200). I compared the results with Mozilla Firefox 3.0.11 About the first behaviour reported ('show a minimal part of the element'), Konqueror seems to work like Firefox. With a small window, konqueror shows the right border of the element, while Firefox shows the left one (with 'testme'). Maybe I didn't understand exactly the other test ("scroll the page until only a part of the element is shown and then press enter in the addressbar") , because I got different results even on Firefox. Could you repeat your tests with a newer version of Konqueror and post here? Thanks
Works fine with KDE 4.6.5