carlosrovira commented on issue #901:
URL: https://github.com/apache/royale-asjs/issues/901#issuecomment-680874388


   Hi,
   
   as stated in the docs [1], `ResponsiveView` should not add `width` and 
`height` since is for responsive applications and the view itself define itself 
to have 100% on both properties.
   
   In exchange, `View` (see [2]) is a normal view that can define width and 
height (and use `BrowserResizeApplicationListener` bead to manage resizing if 
needed) while ResponsiveView does all of this without the need to define a 
listener for window's resize event since its reason is to respond to browser 
window resizing.
   
   TDJ uses ResponsiveView that way:
   
   ```actionscript
   <j:initialView>
        <local:MainContent/>
   </j:initialView>
   ```
   where `MainContent` is a `ResponsiveView` that doesn't specify width or 
height at all.
   
   HTH.
   Carlos
   
   [1] https://apache.github.io/royale-docs/component-sets/jewel/responsiveview
   [2] https://apache.github.io/royale-docs/component-sets/jewel/view


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to