intrinsic size of object (br33903)

David Faure faure at kde.org
Tue Feb 15 14:05:53 GMT 2005


On Friday 11 February 2005 14:18, Koos Vriezen wrote:
> On Fri, Feb 11, 2005 at 02:07:24PM +0100, David Faure wrote:
> > On Friday 11 February 2005 13:29, Koos Vriezen wrote:
> > > Anyway, some time ago Stephan add me to the CC list of br33903. So I
> > > guess to fix this for all kinds of kparts and w/o using the liveconnect
> > > extension, a signal in BrowserExtension is needed, where to the KHTMLPart
> > > is connected and doing something like the javascript does. Of course I
> > > can fix that. I something like that acceptable for khtml?
> > 
> > I'm not following - which signal would you add to BrowserExtension?
> 
> Something like we have already:
>   /**
>    * Ask the hosting application to resize the top level widget.
>    */
>   void resizeTopLevelWidget( int w, int h );
> 
> But maybe we need two, or have a bool for that, that will tell khtml the
> difference between the intrinsic size and a 'normal' resize. First case
> should be ignored in case the object has width/height attributes already.
> Eg.
>    void reizeWidget(int w, int h, bool intrinsic);

This is about a part (e.g. java?) that is embedded into KHTMLPart, right?

This looks sensible then, although I'm thinking another way to do it
might be (just thinking out loud) : widget()->resize(),
caught by an event filter in the "hosting" part (here khtmlpart)?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kfm-devel mailing list