Reload doesn't keep scroll position
Leo Savernik
l.savernik at aon.at
Fri Jun 18 19:50:16 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
As there are some movements wrt to correctly jump to an anchor, I thought I
could tackle bug 32639: jump on right place in page on reload. But it's not
as easy as it seems.
Though within KHTMLPart::openURL and the related slots the URLArgs can be used
for testing whether a page is to be reloaded, it's unclear how to save the
coordinates from the old rendering to the new one.
I thought about the following hack:
Calling saveState in KHTML::closeURL(), and calling restoreState() in
openURL() (or in a related slot) if it is a reload, otherwise throwing it
away, that would save the scroll position for the main document as well as
all child frames.
However, I'm not sure about the implications. Maybe there's an easier
approach. Can somebody with decent knowledge about KParts/Konqueror/KHTMLPart
interaction give me some hints?
mfg
Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQFA0zltj5jssenUYTsRAtCvAJwNkv5vumGod4D78KZki4cIXSkpuQCffxPu
mD4P2imRj9yY4IYqFLhWwRc=
=u1Pe
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list