<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vertically align swatch and label in Hbox in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486192#M11124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Complies and runs but has no effect on the alignment -- I think it has something to do with the swatch -- if I add two labels they align vertically just fine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 16:38:59 GMT</pubDate>
    <dc:creator>PeteVitt</dc:creator>
    <dc:date>2010-10-18T16:38:59Z</dc:date>
    <item>
      <title>vertically align swatch and label in Hbox</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486188#M11120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi - I'm trying to verically align a swatch and a label in an hbox by setting the verticalcenter of the swatch and then setting the vertical center of the label to the same value -- not working.&amp;nbsp; Any ideas on why or a better approach I could take?&amp;nbsp; below is code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pete&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var sr:SimpleRenderer=SimpleRenderer(aRenderer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;swatch=sr.symbol.createSwatch(50, 50);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;swatch.verticalCenter=25;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;aLabel.verticalCenter=swatch.verticalCenter;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hBox.addChild(swatch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hBox.addChild(aLabel);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 15:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486188#M11120</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2010-10-18T15:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: vertically align swatch and label in Hbox</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486189#M11121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pete,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Just set the vertical align of the hbox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 15:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486189#M11121</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-10-18T15:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: vertically align swatch and label in Hbox</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486190#M11122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Pete,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Just set the vertical align of the hbox.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert - the verticalAlign property is not recognized in my intellisense.&amp;nbsp; When I try to use it I get an Error: Access of possibly undefined property verticalAlign through a reference with a static type mx:containers:hbox&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 15:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486190#M11122</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2010-10-18T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: vertically align swatch and label in Hbox</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486191#M11123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pvitt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set the vertical align programatically using the below code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

myHBox.setStyle("verticalAlign","middle");

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can learn more about setStyle() here&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://livedocs.adobe.com/flex/3/html/help.html?content=styles_08.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://livedocs.adobe.com/flex/3/html/help.html?content=styles_08.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486191#M11123</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2021-12-11T21:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: vertically align swatch and label in Hbox</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486192#M11124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Complies and runs but has no effect on the alignment -- I think it has something to do with the swatch -- if I add two labels they align vertically just fine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 16:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486192#M11124</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2010-10-18T16:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: vertically align swatch and label in Hbox</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486193#M11125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I shrunk the height of the swatch down to the hieght of the label -- not the best, but they do line up now -- fortunately all my legend items are points&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 16:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486193#M11125</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2010-10-18T16:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: vertically align swatch and label in Hbox</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486194#M11126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your only other option may be to use a group instead of an HBox, then specify the x, y.&amp;nbsp; Using Group you could retain your original swatch size.&amp;nbsp; Since you know the height difference between the swatch and the label you should be able to center them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 19:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/vertically-align-swatch-and-label-in-hbox/m-p/486194#M11126</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2010-10-18T19:53:10Z</dc:date>
    </item>
  </channel>
</rss>

