Flex :: How To Find Height Of Children In TabNavigator

Nov 13, 2009

I'm having sizing issues with a TabNavigator. The direct children of the TabNavigator are Canvases, and within these I am adding Images. I'm trying to resize the images to fit within the Canvas without scrollbars. The Canvas height is set to 100% of the parent, which is the TabNav. Then I'm setting the image.height = parent.height *.9. The result is that Flex is generating scrollbars because the images are too high. It appears that the root cause is that the height property of the TabNavigator is the height of the entire component, including the height of the tabs. I'm assuming therefore it also contains that little strip of space between the tabs and the children of the TabNavigator. This makes sense, but is there a property that returns only the height of the children? I'm aware of the scrollbar policy properties and I've experimented with those. I know I can also try a different multiplier for the image size to get it to fit. It just seems like there should be a property to get the size of the space for the children.

View 1 Replies


Similar Posts:


Flex :: TabNavigator Not Showing Children

Aug 23, 2010

I have a TabNavigator component which is not showing its children when adding them at runtime.[code]...

View 1 Replies

Flex :: TabNavigator Can't Handle Disabled Children?

Jun 8, 2011

I've got a problem while migrating my TabNavigator from Flex 3 to Flex 4.5. Stripped to the bare minimum, the following code will produce the bug, namely that the second child of the TabNavigator fails to be created properly:

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"

[Code]....

Is this really a Flex bug, or is there something I'm missing? I'm using Flex 4.5.0.20967, and all of this worked well in Flex 3.5.

View 1 Replies

Get Total Height Of A Container's Children In Flex?

Aug 9, 2010

If I have a container, and I set clipContent to true, how do I get the total height of the children inside it? Is there a method for doing this without itinerating through every child and summing the heights?

View 1 Replies

Flex Get Height Of Children When To Call Function?

Jun 8, 2009

I have a function I wrote that gets the height of the application without scrolling. Meaning the height it would need to be to not have to scroll.

[Code]...

This function works well but the problem is knowing when to call it. I planned on calling it after I add/remove any children from it. However thats still too soon because I don't get the correct height yet if I run it then. The fix I currently have is using a Timer to call the function about 300 milliseconds after a child is added/removed which seems to work well but I think this is a very risky fix. So I was wondering a better solution. I am thinking there has to be some sort of event I can listen for that will tell me when its ready for me to run this function, I just don't know what event that would be?

View 1 Replies

Actionscript 3 :: Flex 4: Most Practical Way To Find Nested Children

Oct 28, 2010

I'm sort of jumping in headfirst to some Flex/AIR stuff. I have a pretty solid background with AS3, but given the inherent hierarchal complexity of Flex (compared to regular Flash), I'm running into an issue.

Let's assume that you have an app where pretty much everything is event driven (common). Accessing elements in the near vicinity of the event target, or the event target itself, is trivial. I'm trying to find, however, the most practical (read: best, most efficient) way to find children that are far removed from the current context.

[Code]...

View 3 Replies

Flex :: VGroup - (Parent) Container Does Not Change Height With Children?

May 13, 2011

I have code like the following:
<s:VGroup gap="10" id="group" height="100%">
<s:Label text="This is page 2" />
<s:Button content="Resize Canvas" click="resize(event);"/>
<mx:Canvas id="photoCanvas" color="#567898" backgroundColor="#125567">
</mx:Canvas>
</s:VGroup>

I don't understand why the following does not work:
Pushing the Button resizes the photoCanvas's height (gets taller or smaller). Since the photoCanvas control is a child element of the VGroup shouldn't the container update itself to the new height? The Vgroup has ALWAYS the same height, no matter what the (total) height of the children is! I would like the VGroup to adjust itself and get a height value equal to the sum of its children heights. Is this not possible??

View 1 Replies

Flex :: Width And Height Specified In Percentage Not Working For Children Of A Viewstack

Sep 30, 2011

I have a ViewStack which is dataProvider for a TabBar. There are two VBoxs as children for this ViewStack. It works fine with absolute values for width and height for these VBoxs, but when specified in percentages, the VBox uses all the available space (100%) for any percentage value. find the code and screen shots below.

how can children of a ViewStack be aligned to center? There is no horizontalAlign property for ViewStack and it is not working with horizontalCenter= "0".

Code:

<mx:ViewStack id="viewStack" width="100%" height="100%" selectedIndex="0" horizontalCenter="0" textAlign="center">
<mx:VBox label="Tab 1" width="25%" height="10%" borderThickness="2" borderColor="red"

[Code]....

View 2 Replies

Flex :: Setting A Group Container Height To 0 Does Not Hide His Children?

Feb 21, 2012

I need to resize a Group using myGroup.height = 0. And it works, but myGroup's children are still visible, I do not know why...

View 1 Replies

Flex :: Find The Number Of Characters That Can Be Fit For A Text Control Of A Given Height?

Aug 12, 2010

In flex, I have mx:Text component. How can I find how many characters can fit into it without vertical scroll for a certain height & font etc.

View 1 Replies

Actionscript 3 :: Find Height Of Dynamic Flex Component Used As A Popup?

Jul 8, 2011

I've created a custom component with several inline item renderers that I use as a tooltip. The height of the component is unknown, as the data contents of the component are not known until runtime.

However, when displaying the tooltip, occasionally it extends beyond the boundaries of the flash application, thus, I'd like to be able to detect this occurrence and reposition the tip.

The problem is that the height and width of the component are, apparently, not available until after being rendered by the popup manager. (i.e. they are always 0)But, I do not know any way of finding out when the popup is actually rendered and, therefore, the height/width values available.

[Code]...

View 4 Replies

Flex :: Changing ScaleX/scaleY On Parent Scales The Children But Doesn't Update Height/width Property?

Nov 23, 2010

I have created a custom component - MyImage - that has two children including a Bitmap as well as a Sprite.My display object hierarchy is as follows -

mx:Canvas
view:MyImage
mx:Bitmap

[code].....

View 1 Replies

PHP :: Flex - Refresh Particular Tab Of TabNavigator?

Nov 3, 2009

I am using a Tab Navigator component in which there are three canvas components. When I click one of the canvas (or tab), a Pie Chart is displayed. Actually what happens is that on-click
1. the canvas sends an HTTPService whose url is set to a php file
2. That php file actually gets information from a database. Based on that information an xml file is created
3. Fusion Chart uses that xml file to display a pie chart

The database is being updated after some time. Is there any way the Pie Chart may get updated after every 3 minutes to reflect the modifications in the database? or
Can I send the particular HTTPService again and again after every 3 minutes 'in background'? or
Is there any good way to update the information in a particular canvas (or tab) of Tab Navigator?

View 3 Replies

ActionScript 3.0 :: Find The Dimension Of A Container To Set All Children Visible?

Jun 17, 2010

I'm trying to avoid the scroll bar appearance on an UIComponent. Is there any way to obtain the computed width/height that my container component should have to have all children visible? I don't want to compute it myself. I would like to know if there is any variable computed by the component when it decides if it should draw the scroll bar or not.

View 0 Replies

ActionScript 3.0 :: Find A Branch And Walk Through A List Of Its Children?

Nov 6, 2010

xml stuff in action script is so... non-intuitive.. cubersome I can compare it to the xml libs that I used in playground sdk, popcap and other .. tinyxml.. ....

I' m trying to make that simpliest thing for about 2-3 hours.. + reading books.. and still can't do it..

what I want to do is:
<xml>
<Weapons>
<Weapon id="canon" rechargeTime="200" impulse="30">

[Code].....

how do I read the all "Weapon" objects listed inside Weapons.. NOTE: I dont want to use the method.. that returns "Weapon" from all over the xml... cause I probably want to list weapons in other sections for other purposes

View 2 Replies

Flex :: SelecedIndex Of Tabnavigator Is Appended To Url?

Nov 2, 2009

In my flex application when I added a tabnavigator control and ran the application, I found that a "#" was appended to the url in the browser and whenever I select one of the tabs the url changes to this "myurl#app=7049&c152-selectedIndex=1" reflecting the index of the selected tab, is this a normal behavior of the tabnavigator,

View 2 Replies

Flex :: Select A Tab In A TabNavigator In A New State?

Feb 7, 2010

in my case I click a button. it calls changeTabState() ; it changes the state and then needs to select a tab using selectedIndex. but that does not work properly. If i go back go the main state and click the button again, it works as it should.Button:

<mx:Button x="741" y="21" label="Upload" click="changeTabState('login');" visible="{loggedIn}"/>
Function:

[code].....

View 1 Replies

Flex :: Resizing Contents In TabNavigator In 3

Apr 12, 2010

I am working on tabNavigator in flex 3. I have tileList within it. Contents in the tab comes dynamically so I cannot provide explicitly fixed height and width. I need to resize the tabs depending on the contents within it. To resize the tabs I have enabled 'resizeToContent' property of tabNavigator.For some reason it is not resizing as expected. 'resizeToContent' works fine for other child items in tabNavigator but fails when I use tileList as child in tabNavigator that time tileList resizes to its default size(4 rows are only visible). So i was wondering if there any way so that I can force tileList to display all its items without putting scrollbars after its default size.

just by invalidating size on creationComplete ,will that resize all tabs for me. I am having n-number of tabs in tabNavigator as user can add tabs and content within it. how can I achieve this. I am new to flex so just getting confused with its behaviorand struggling with this issue from long time.

View 1 Replies

Flex :: Set Tab Index > 0 In TabNavigator At Initilize?

Jun 9, 2010

How to set tab index > 0 in TabNavigator control at initilize, flex

View 2 Replies

Flex :: Adobe: Hiding Tab Bar In TabNavigator?

Jul 7, 2010

Does anyone know how to hide the tab bar up top on a flex tabnavigator component? I don't want to see the tab bar at all and I don't need to click on it (I have an automated iterator through the tabs).

View 1 Replies

Flex :: Add Button In TabNavigator Header?

Nov 5, 2010

i want to add minmun/maximum button on tabnavigator header.

View 3 Replies

Flex :: 4.5 TabNavigator CornerRadius Not Working?

Oct 19, 2011

I'm having the hardest time finding a way to simply add rounded tabs to a TabNavigator control.I have seen examples which seem to be really simple but they don't seem to work in Flex 4.5. Here is some sample code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]......

View 2 Replies

Actionscript 3 :: MovieClip Resizes But Its Children's Height And Width Are Not Changed?

Feb 27, 2011

Changing the width and height of the parent MovieClip does not bring change in the width and height of the inner MovieClip. The parent MovieClip is placed at Stage and is resized manually. When I assign the dimension of the parent MovieClip to the inner MovieClip through code, the parent MovieClip dimension is changed. I want both MovieClip to be of same width and height at runtime. However, parent MovieClip dimension is changed at design time by me.

Example:There are two MovieClip, one inside another. Now parent MovieClip is placed at Stage at design time and its dimension is (50,50) and the child MovieClip which is inside the parent MovieClip has also same dimensions (50,50). Now, I manually change the parent MovieClip dimension by pressing Q and stretching it with mouse, the dimension of the parent MovieClip is now (100,150) or whatever I like. Now double-click on parent MovieClip and check that inner MovieClip dimension remains same i.e. (50,50)Now in AS3 code, I change the width and height of inner MovieClip like this:

saveheight = parentmc.height;
savewidth = parentmc.width;

now I change the child MovieClip according to the dimensions of the parent MovieClip like this:

parentmc.inner_mc.width = parentmc.width;
parentmc.inner_mc.height = parentmc.height;

but this brings change in parentmc also so I reassign value to parentmc like this:

parentmc.height = saveheight;
parentmc.width = savewidth;

In above case, parentmc and inne_rmc dimension should be same i.e (100 ,150). With swapping the values as above, I get parentmc and inner_mc to be of same dimension, but object size is never (100, 150), I have checked it with pixel-perfect air app.

View 3 Replies

ActionScript 3.0 :: Change The Height & Width Of The Container Without The Children Scaling?

Feb 15, 2009

I have a container object that i add children to. I want to change the height & width of the container without the children scaling. In this case I draw a rectangle in flash which I'll use as the container object then export for AS.

[Code]...

View 5 Replies

Flex :: Get Information Of Tabs Open In TabNavigator

Jun 19, 2009

i am opening tabs with click event on tree list view. Problem is that i do not want open tab Pista as u can see in image again. i want to focus that open Pista tab.

View 1 Replies

Flex :: Stop TabNavigator From Adding HASH To URL

Dec 21, 2009

I have a TabNavigator component that keeps added a hash (#) to the URL. I need to prevent this. I have it set to historyManagementEnabled="false" but it is still adding the # to the URL when it initializes. The reason why adding this hash is such a problem is because, I am using .htaccess to give my URL a pretty URL like domain.com/designer/category/product/id when the page is really located at domain.com/product.php?pid=id So in order for my assets to load correctly I had to add a base tag like this:
<base href="[URL]" />
But since I have this base tag set, whenever my flex app adds the # to the URL, the page is now automatically redirected to the homepage. Any way to stop the TabNavigator from adding the # to the URL.

View 2 Replies

Flash :: Open Tab From TabNavigator With Actionscript In Flex

Mar 22, 2010

I've got a TabNavigator with multiple canvas children. How can i open one of the children with actions script (imagine it as a tab with an intro and after login the tab with content needs to be opened). I have tried this.parentDocument.tabs.selectedIndex(1); but that doesnt work.

View 1 Replies

Actionscript 3 :: Styling Buttons Of Flex TabNavigator?

May 22, 2010

I created a TabNavigator with a bunch of NavigatorContent inside it, and want to skin just the buttons of the tabs themselves. So I added a skinClass, but looks like in the documentation, there's no skin part to target the button specifically.

Do I have to style the mx:TabNavigator itself to accomplish this? I was hoping not since I don't know how to style mx components and am more comfortable with styling spark.

View 2 Replies

Actionscript 3 :: Flex 3 Or 4. To Have TabNavigator With The Button On The Bottom

Nov 21, 2010

Is it possible to place the Tabs on the bottom of a TabNavigator?

Currently, I want to see if Flex4 can cretae tabs for me positioned on the bottom.

Currently I can use [URL] for his positionedTabNavigator and yet it looks wonky, when I apply rounded corners on the tab, it rounds the wrong end.

View 1 Replies

Actionscript 3 :: Flex Tabnavigator Cuts Off Labels

May 18, 2011

I have a problem with the TabNavigator. The labels of the tabs are getting truncated and once the user places their mouse over the tab it redraws again. Is there anyway to redraw the label of the tab programmatically?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved