KHTML Layout Changes (Regarding Krecipes)

Allan Sandfeld Jensen kde at carewolf.com
Thu Mar 3 10:14:23 GMT 2005


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.

`Allan
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<




More information about the kfm-devel mailing list