KHTML Layout Changes (Regarding Krecipes)
Waldo Bastian
bastian at kde.org
Thu Mar 3 10:59:28 GMT 2005
On Thursday 03 March 2005 11:14, Allan Sandfeld Jensen wrote:
> On Wednesday 02 March 2005 19:53, Jason wrote:
> > Hi,
> >
> > I'm hoping somebody could enlighten me on some changes to done to KHTML's
> > layouting from KDE 3.3 -> 3.4.
> >
> > Krecipes uses a KHTMLPart to render off-screen html. Ultimately, what we
> > do with it is determine the height of some html, given a fixed width.
> > Before, we wrote the html to the KHTMLPart, then called
> > KHTMLPart->view()->layout(), and finally we could then get the height of
> > what was generated by KHTMLPart->view()->contentsHeight(). Now in KDE 3.4
> > RC1, I am getting the same result from contentsHeight() as I did before
> > calling layout(). So, I suspect that layout() perhaps is only scheduling
> > a layout, but because it isn't visible, the layout isn't taking effect.
> >
> > How can I force this layout? or any hints? Now the Krecipes recipe view
> > is completely messed up, so hopefully there's something I can do about
> > this soon :-/
>
> I don't know how to fix it, but for a short period I was affraid we had
> changed public api. However layout() is already marked as "make private for
> KDE 4", so it was on your own risk you used it.
I disagree.
KDE 4 is still a long time away and we are talking about KDE 3.4 here. In KDE
3.4 the method is public so it should stay compatible.
The function isn't marked obsolete, or "Don't use" in anyway.
Cheers,
Waldo
--
bastian at kde.org | Free Novell Linux Desktop 9 Evaluation Download
bastian at suse.com | http://www.novell.com/products/desktop/eval.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050303/9139f82a/attachment.sig>
More information about the kfm-devel
mailing list