You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Scott Wilson (Commented) (JIRA)" <ji...@apache.org> on 2011/11/03 14:09:32 UTC

[jira] [Commented] (RAVE-335) Render W3C Widgets using their Height and Width attributes

    [ https://issues.apache.org/jira/browse/RAVE-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143121#comment-13143121 ] 

Scott Wilson commented on RAVE-335:
-----------------------------------

An alternative solution would be to add optional height and width parameters to the Widget base model.
                
> Render W3C Widgets using their Height and Width attributes
> ----------------------------------------------------------
>
>                 Key: RAVE-335
>                 URL: https://issues.apache.org/jira/browse/RAVE-335
>             Project: Rave
>          Issue Type: Story
>          Components: rave-w3c-provider
>    Affects Versions: 0.5-INCUBATING
>            Reporter: Scott Wilson
>              Labels: w3c
>
> W3C Widgets define a "height" and "width" attribute in their metadata rather than calling an RPC method to reset the iFrame size.
> When Rave renders a W3C Widget, it should use this metadata to set the iFrame size when rendered. 
> The metadata is available within the Widget start file itself by calling widget.height and widget.width. However this would only be directly accessible where Wookie is deployed at the same origin as Rave; an alternative would be to send a HTML5 PostMessage to the parent, or to add the RPC resize methods to W3C Widgets somehow.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira