Re: Resize Windowless plugin

Benjamin Smedberg <[email protected]> Tue, 14 May 2013 09:25:31 -0400
Newsgroups gmane.comp.mozilla.devel.plugins
Message-ID <[email protected]>
On 5/14/2013 8:03 AM, [email protected] wrote:
> Hi,
>
> Does anyone know if it is possible to resize a windowless plugin from within the plugin? By calling some browser functions .
Plugins are like most other DOM elements in this regard. The intrinsic 
size is determined using the width="" and height="" attributes on the 
<object> or <embed>, but that can be overridden using CSS. You can use 
normal DOM scripting (via NPRuntime) to change the size using 
element.style.width, for example.

--BDS