Adding sizing feature to the plugin API. Reviewed by Nisheeth.

This commit is contained in:
av%netscape.com 1998-08-04 23:49:09 +00:00
parent fb49032bbb
commit 0c1a191dbb

View File

@ -1623,7 +1623,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;
}