Re: Resize Windowless plugin
[email protected] Tue, 14 May 2013 06:35:52 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, May 14, 2013 3:25:31 PM UTC+2, Benjamin Smedberg wrote: > 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 I have been searching for some samples of how to use NPRuntime however I can't find any. Are you aware of some samples? /Christian