Added av's changes back in from lib/plugin/npglue.cpp -- Adding sizing feature to the plugin API. Reviewed by Nisheeth.

git-svn-id: svn://10.0.0.236/trunk@7305 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 1998-08-05 02:53:11 +00:00
parent c842c7a21e
commit 627233819d

View File

@ -61,6 +61,10 @@ int np_debug = 0;
static XP_Bool gForcingRedraw = FALSE;
#endif /* XP_MAC */
#ifdef XP_MAC
XP_Bool gForcingRedraw = FALSE;
#endif /* XP_MAC */
NPNetscapeFuncs npp_funcs;
/*
@ -1638,7 +1642,15 @@ npn_setvalue(NPP npp, NPPVariable variable, void *r_value)
break;
case NPPVpluginWindowSize:
{
NPSize * pnpsz = (NPSize *)r_value;
np_data * ndata = (np_data *)instance->app->np_data;
LO_EmbedStruct * pes = ndata->lo_struct;
LO_SetEmbedSize(instance->cx, pes, pnpsz->width, pnpsz->height);
LO_RelayoutFromElement(instance->cx, (LO_Element *)pes);
break;
}
default:
break;
}