Bug in KHMTLPart::gotoAnchor, RenderBox x and y are not right

Eeli Kaikkonen eekaikko at mail.student.oulu.fi
Mon Jan 7 23:59:23 GMT 2008


Thanks for the reply!

On Tue, 8 Jan 2008, Germain Garand wrote:
> Here your problem is that the node you are looking for simply hasn't received
> a layout yet.
> You should use KPart's completed() or completed(bool) signal to make sure the
> layout is final before calling gotoAnchor.

I don't quite understand - should I catch or emit the signal? At least
emitting doesn't seem to work.

> This should probably made clearer in the documentation though (patches
> welcome!). And gotoAnchor should arguably return false in such case.. hmm.

Yes, documentation should surely be better. The current doc gives only

 w->begin();
 w->write(myHTMLCode);
 ...
 w->end();

as an example and it doesn't give any hint that the document may not be
ready.

  Yours,
	Eeli Kaikkonen (Mr.), Oulu, Finland
	e-mail: eekaikko at mailx.studentx.oulux.fix (with no x)




More information about the kfm-devel mailing list