<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Setting width and height in Flex using CSS</title>
	<atom:link href="http://www.markvandenbergh.com/archives/134/setting-width-and-height-in-flex-using-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markvandenbergh.com/archives/134/setting-width-and-height-in-flex-using-css/</link>
	<description>I spent a minute looking at my own code by accident... thinking &#34;What the hell is this guy doing?&#34; (bash.org)</description>
	<lastBuildDate>Tue, 13 Apr 2010 15:10:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://www.markvandenbergh.com/archives/134/setting-width-and-height-in-flex-using-css/comment-page-1/#comment-731</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 29 Mar 2010 17:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.markvandenbergh.com/?p=134#comment-731</guid>
		<description>I&#039;ve tested the code above also for extending the button class. If I don&#039;t specify width and height it picks the default. Flex SDK 3.4</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tested the code above also for extending the button class. If I don&#8217;t specify width and height it picks the default. Flex SDK 3.4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.markvandenbergh.com/archives/134/setting-width-and-height-in-flex-using-css/comment-page-1/#comment-719</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 31 Jul 2009 18:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.markvandenbergh.com/?p=134#comment-719</guid>
		<description>I&#039;m using exactly the same technique to extend the Button class.  I&#039;m loading different compiled CSS at runtime to change the size of the button.  When I load a CSS without any width and height properties, the width and height do not revert to the default values.  That is, the button does not automatically resize to fit the text of the label.  I tried changing the IF statement in applyProperties to

if (prop != null)
    this[item] = prop;
else
    this[item] = 0; 

but my button becomes invisible when I don&#039;t specify width and height in the CSS.  Any suggestion?</description>
		<content:encoded><![CDATA[<p>I&#8217;m using exactly the same technique to extend the Button class.  I&#8217;m loading different compiled CSS at runtime to change the size of the button.  When I load a CSS without any width and height properties, the width and height do not revert to the default values.  That is, the button does not automatically resize to fit the text of the label.  I tried changing the IF statement in applyProperties to</p>
<p>if (prop != null)<br />
    this[item] = prop;<br />
else<br />
    this[item] = 0; </p>
<p>but my button becomes invisible when I don&#8217;t specify width and height in the CSS.  Any suggestion?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
