Hi Alex,
That works great really.
Here I am providing how we have used the listener for other user's
reference:
//From our initialView
protected function onInitComplete(event:org.apache.flex.events.Event):void
{
this.addEventListener("sizeChanged", resizeListener);
}
// we need to change UI based upon the screen size. taking decision to show
1 column layout or 2 column layout
private function resizeListener (e:Event):void
{
if (this.width > 1004)
ApplicationModel(applicationModel).maxNumColumnsSuggested = 2;
else ApplicationModel(applicationModel).maxNumColumnsSuggested = 1;
}
Thanks for the help.
Dhwani
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12523.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.