<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kerkness.ca &#187; creationPolicy</title>
	<atom:link href="http://www.kerkness.ca/tagged/creationpolicy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerkness.ca</link>
	<description>flexing my kerkness, among other things</description>
	<lastBuildDate>Wed, 14 Oct 2009 15:12:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting minHeight/minWidth on Adobe Air app forces ViewStack creationPolicy to ALL : or at least I think so.</title>
		<link>http://www.kerkness.ca/setting-minheightminwidth-on-adobe-air-app-forces-viewstack-creationpolicy-to-all-or-at-least-i-think-so/</link>
		<comments>http://www.kerkness.ca/setting-minheightminwidth-on-adobe-air-app-forces-viewstack-creationpolicy-to-all-or-at-least-i-think-so/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 15:26:53 +0000</pubDate>
		<dc:creator>Kerk</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[adobe air]]></category>
		<category><![CDATA[creationPolicy]]></category>

		<guid isPermaLink="false">http://www.kerkness.ca/?p=400</guid>
		<description><![CDATA[I guess it&#8217;s been a real busy couple of months for me as I haven&#8217;t managed to post anything since December.  Here is a little gotcha that I ran across while converting a Flex App to an Adobe Air app.
In my application and the main WindowedApplication contains a ViewStack and a ViewController. Inside the [...]]]></description>
			<content:encoded><![CDATA[<p>I guess it&#8217;s been a real busy couple of months for me as I haven&#8217;t managed to post anything since December.  Here is a little gotcha that I ran across while converting a Flex App to an Adobe Air app.</p>
<p>In my application and the main WindowedApplication contains a ViewStack and a ViewController. Inside the ViewStack are the various MXML views which make up the application.  When my application was just a Flex app I sized the application to 100% width/height in the html-template file.  However for my Air application it is necessary to set a minimum width/height on launch and let the user decide if they want to maximize the window or set a custom size.</p>
<p>The gotcha came when I set minWidth and minHeight on the new WindowedApplication. This apparently sets the creationPolicy to &#8216; ALL &#8216; on the parent and thus is inherited by the ViewStack.</p>
<blockquote><p>If no creationPolicy is specified for a container, that container inherits its parent&#8217;s creationPolicy. If no creationPolicy is specified for the Application, it defaults to ContainerCreationPolicy.AUTO.</p></blockquote>
<p>So the moral of this story is.  If you set minHeight/minWidth on a WindowedApplication consider the desired creationPolicy for children. If you don&#8217;t want all children to be automatically created when the application is launched then you&#8217;ll need to adjust the creationPolicy for child containers manually to &#8216; auto &#8216; or &#8216; none &#8216;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerkness.ca/setting-minheightminwidth-on-adobe-air-app-forces-viewstack-creationpolicy-to-all-or-at-least-i-think-so/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
