May 20
We are doing some work with FlexLib, making use of the HAccordion class. Strangely enough, all my tree items were screwed up. The alignment of the items was right justified.
In order to get the text on the accordians up to the top corner, they have their textAlign set to right. For whatever reason, this inherits through to the tree component, but the other components are unaffected. By explicitly setting the textAlign property of the HAccordian's children back to left, I was able to reverse the effect.
<?xml version="1.0" encoding="utf-8"?>
<mx:Box width="100%" height="100%"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:flexlib="http://code.google.com/p/flexlib/"
xmlns:view="view.*"
creationComplete="init()" xmlns:objectModel="com.echoeleven.echolearning.rulesBuilder.view.objectModel.*">
<mx:Script>
<![CDATA[
private function init():void {
var numRulePleats:int = parentApplication.numRulePleats;
for(var i:int = 0 ; i < numRulePleats ; i++ ) {
var newPleat:RulesContainer = new RulesContainer();
newPleat.isInDLCMode = false;
newPleat.textAlign="left"
newPleat.label = "Branch to DLC " + i.toString();
hAccordion.addChild( newPleat );
}
}
]]>
</mx:Script>
<flexlib:HAccordion width="100%" height="100%" id="hAccordion">
<objectModel:ModelItemChooser horizontalAlign="left" />
</flexlib:HAccordion>
</mx:Box>
Jul 5, 2009 at 7:55 AM Thanks for posting this! Very helpful!
I found this by accident looking for help on another issue. Then 10 minutes later ran into this exact problem (once my other one was solved). Sure glad I wandered by this one on the way, you saved me a ton of frustration.
Nov 10, 2009 at 4:07 AM I subscribed to your blog when is the next post
Sep 7, 2011 at 11:00 PM I propose not to hold off until you get big sum of cash to buy different goods! You can get the loans or just short term loan and feel free
Jan 10, 2012 at 2:02 AM Free info like this is an apple from the tree of knwolegde. Sinful?
Jan 11, 2012 at 9:23 PM mXIHYT , [url=http://idtyjfwsgyhn.com/]idtyjfwsgyhn[/url], [link=http://dbfddosewqcr.com/]dbfddosewqcr[/link], http://uhmjmysswfcj.com/