diff --git a/lib/plugin/npglue.cpp b/lib/plugin/npglue.cpp index 82a10db298f1..56a8d49a16db 100644 --- a/lib/plugin/npglue.cpp +++ b/lib/plugin/npglue.cpp @@ -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; }