intrinsic size of object (br33903)
Koos Vriezen
koos.vriezen at xs4all.nl
Tue Feb 15 16:51:13 GMT 2005
On Tue, Feb 15, 2005 at 03:05:53PM +0100, David Faure wrote:
> 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)?
For '<object type="image/png"></object>' yes, but how does the imagepart
knows about '<object type="image/png" WIDTH=50 HEIGHT=100></object>' or
should the khtmlpart resize it back again. But then there is no way to
have a forced resize, eg. an applet may perform a resize when needed.
Koos
More information about the kfm-devel
mailing list