<?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 the header height on a Flex Panel container</title>
	<atom:link href="http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sat, 11 Feb 2012 11:51:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-4675</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 22 Jul 2009 01:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-4675</guid>
		<description>Mark,

It &lt;em&gt;should&lt;/em&gt;, but I believe there is currently an open bug on the issue: &lt;a href=&quot;http://bugs.adobe.com/jira/browse/SDK-21549&quot; rel=&quot;nofollow&quot;&gt;[SDK-21549] &quot;Halo Panel &lt;code&gt;headerHeight&lt;/code&gt; style does not function as expected with Spark Skin&quot;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>It <em>should</em>, but I believe there is currently an open bug on the issue: <a href="http://bugs.adobe.com/jira/browse/SDK-21549" rel="nofollow">[SDK-21549] &#8220;Halo Panel <code>headerHeight</code> style does not function as expected with Spark Skin&#8221;</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-4671</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 21 Jul 2009 20:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-4671</guid>
		<description>Should headerHeight work in Gumbo? It does not for me.
The titlebar title is pushed down by a gray area&#039;s height on a top is not changed.</description>
		<content:encoded><![CDATA[<p>Should headerHeight work in Gumbo? It does not for me.<br />
The titlebar title is pushed down by a gray area&#8217;s height on a top is not changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-4586</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 16 Jul 2009 15:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-4586</guid>
		<description>Ganesh,

I&#039;d try creating a Panel and not specifying a height, that way the Panel container should size based on it&#039;s children&#039;s dimensions. Next, bind the nested List control&#039;s &lt;code&gt;rowCount&lt;/code&gt; property to the number of items in the List control&#039;s data provider. That way, the List should always resize itself to the display all of its items (which may or may not look terrible, considering how many items  you have in the List dataProvider).

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:Button label=&quot;2 items&quot; click=&quot;list.dataProvider = [1,2];&quot; /&gt;
        &lt;mx:Button label=&quot;4 items&quot; click=&quot;list.dataProvider = [1,2,3,4];&quot; /&gt;
        &lt;mx:Button label=&quot;6 items&quot; click=&quot;list.dataProvider = [1,2,3,4,5,6];&quot; /&gt;
        &lt;mx:Button label=&quot;10 items&quot; click=&quot;list.dataProvider = [1,2,3,4,5,6,7,8,9,10];&quot; /&gt;
        &lt;mx:Button label=&quot;16 items&quot; click=&quot;list.dataProvider = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];&quot; /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Panel title=&quot;Auto sizing Panel&quot;&gt;
        &lt;mx:List id=&quot;list&quot; width=&quot;150&quot; rowCount=&quot;{list.dataProvider.length}&quot; /&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Ganesh,</p>
<p>I&#8217;d try creating a Panel and not specifying a height, that way the Panel container should size based on it&#8217;s children&#8217;s dimensions. Next, bind the nested List control&#8217;s <code>rowCount</code> property to the number of items in the List control&#8217;s data provider. That way, the List should always resize itself to the display all of its items (which may or may not look terrible, considering how many items  you have in the List dataProvider).</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ApplicationControlBar</span> dock=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;2 items&quot;</span> click=<span style="color: #ff0000;">&quot;list.dataProvider = [1,2];&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;4 items&quot;</span> click=<span style="color: #ff0000;">&quot;list.dataProvider = [1,2,3,4];&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;6 items&quot;</span> click=<span style="color: #ff0000;">&quot;list.dataProvider = [1,2,3,4,5,6];&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;10 items&quot;</span> click=<span style="color: #ff0000;">&quot;list.dataProvider = [1,2,3,4,5,6,7,8,9,10];&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;16 items&quot;</span> click=<span style="color: #ff0000;">&quot;list.dataProvider = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ApplicationControlBar</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;Auto sizing Panel&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:List</span> id=<span style="color: #ff0000;">&quot;list&quot;</span> width=<span style="color: #ff0000;">&quot;150&quot;</span> rowCount=<span style="color: #ff0000;">&quot;{list.dataProvider.length}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganesh</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-4582</link>
		<dc:creator>Ganesh</dc:creator>
		<pubDate>Thu, 16 Jul 2009 11:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-4582</guid>
		<description>I have a list box inside the panel. I have an requirement to specify the height of the panel as the length of the data source which I gave for the list box.</description>
		<content:encoded><![CDATA[<p>I have a list box inside the panel. I have an requirement to specify the height of the panel as the length of the data source which I gave for the list box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant Khanal</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-2274</link>
		<dc:creator>Prashant Khanal</dc:creator>
		<pubDate>Sun, 23 Nov 2008 07:47:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-2274</guid>
		<description>Hey Folks,

I see a dark line between header and body of my panel. I have set the border thickness to be zero from all sides. Is there any way to remove that?</description>
		<content:encoded><![CDATA[<p>Hey Folks,</p>
<p>I see a dark line between header and body of my panel. I have set the border thickness to be zero from all sides. Is there any way to remove that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-2273</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Fri, 03 Oct 2008 17:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-2273</guid>
		<description>Antonio,

That code should work. If you are using Flex Builder 3, you should have the have the PNG file in the /src/assets/ folder, and your MXML file should be in the /src/ file.

You can download the project source code above and view the directory structure and probably try importing the project into Flex Builder.

Peter</description>
		<content:encoded><![CDATA[<p>Antonio,</p>
<p>That code should work. If you are using Flex Builder 3, you should have the have the PNG file in the /src/assets/ folder, and your MXML file should be in the /src/ file.</p>
<p>You can download the project source code above and view the directory structure and probably try importing the project into Flex Builder.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-2272</link>
		<dc:creator>Antonio</dc:creator>
		<pubDate>Fri, 03 Oct 2008 16:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-2272</guid>
		<description>Hi, I&#039;ve been working with flex for a couple of weeks now and i was looking for some way to put an image in the panel&#039;s header just as you have on your example, i tried the same code
&lt;pre class=&quot;code&quot;&gt;
titleIcon=&quot;@Embed(&#039;assets/Panel.png&#039;)&quot;
&lt;/pre&gt;

with of course the name of my file and the folder where it&#039;s contained (this folder is contained in the main project folder). But it still doesn&#039;t work, is there a specific location where the file must be or am I missing something??</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve been working with flex for a couple of weeks now and i was looking for some way to put an image in the panel&#8217;s header just as you have on your example, i tried the same code</p>
<pre class="code">
titleIcon="@Embed('assets/Panel.png')"
</pre>
<p>with of course the name of my file and the folder where it&#8217;s contained (this folder is contained in the main project folder). But it still doesn&#8217;t work, is there a specific location where the file must be or am I missing something??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-2271</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 24 Jan 2008 03:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-2271</guid>
		<description>Alex,

No, I typically haven&#039;t been separating code. I have on a few examples if I have a big data set (I may externalize the XML, for example).
Typically I leave it all in one code block so it is [hopefully] easier for people to copy/paste. Otherwise, they&#039;ll have to right-click on the SWFs, select &quot;View Source&quot; and try and recreate the project piece by piece.

Peter</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>No, I typically haven&#8217;t been separating code. I have on a few examples if I have a big data set (I may externalize the XML, for example).<br />
Typically I leave it all in one code block so it is [hopefully] easier for people to copy/paste. Otherwise, they&#8217;ll have to right-click on the SWFs, select &#8220;View Source&#8221; and try and recreate the project piece by piece.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Grande</title>
		<link>http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/comment-page-1/#comment-2270</link>
		<dc:creator>Alex Grande</dc:creator>
		<pubDate>Thu, 24 Jan 2008 02:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/12/setting-the-header-height-on-a-flex-panel-container/#comment-2270</guid>
		<description>Nice site. I&#039;m happy to find it and am finding it useful.

The change in background color on this reply is nice too.

One thing I noticed is you are not separating your code. If you are going to teach people flex please teach them to use separate style sheets and follow best practices.

Thanks again! keep it up!

Alex</description>
		<content:encoded><![CDATA[<p>Nice site. I&#8217;m happy to find it and am finding it useful.</p>
<p>The change in background color on this reply is nice too.</p>
<p>One thing I noticed is you are not separating your code. If you are going to teach people flex please teach them to use separate style sheets and follow best practices.</p>
<p>Thanks again! keep it up!</p>
<p>Alex</p>
]]></content:encoded>
	</item>
</channel>
</rss>

