Flex :: Change Spark BorderContainer Default Height?

Sep 29, 2011

How to create horizontal layout container like HGroup but with border and border radius?In this example there is some default height:

<s:BorderContainer width="100%" borderWeight="2" cornerRadius="5">
<s:layout>
<s:HorizontalLayout/>

[code]....

I want it to have height of the heighest element in container. Like in HGroup. Add: Why is height for above example BorderContainer equal to 112 ?

View 2 Replies


Similar Posts:


Flex :: Set Spark List Max Height More Than Its Default Value 10000?

Jul 5, 2011

I want my list control has its content height as I don't want scroll bars. For the scrolling purpose I have my own scroller in parent container.

Now, The problem is when list control exceeds the maxHeight 10000, then it will start clipping remaining data. I think the solution is increase the maxheight.

how I can set maxheight more than 10000.

For Example..

</s:Scroller width="100%" height="100%">
</s:VGroup>
<s:List id="myList" dataProvider="arrData" useVirtualLayout="false" />
</s:VGroup>
</s:Scroller>

In this case assume that I have arrData.length = 9999999, and for that mylist's height will become 10000+ (Lets assume 15000). now mylist will clipped after 10000px height or list's vertical scrollbar will visible and as I adready have scroller of my own It will have two scrollbars at that particular time.

View 4 Replies

Flex :: Shrink The Default Spark DataGrid Row Height And Keep The Text Vertically In View?

Dec 11, 2011

In the Spark DataGrid the default row height is about 22 px. I would like to set the default row height to 18 pixels and I can do this easily enough with the rowHeight property but what happens is when the rowHeight is set to anything less than 22 px the bottom area of the text in each row is cut off. It seems that the default grid itemrenderer or grid label has a min height set to it. Since I have multiple columns and want to have shorter rows but not have the bottom of the text cut off in each row how would I do this?

View 2 Replies

Flex :: Change The Title Bar Height Of Spark.components.Panel?

Mar 26, 2012

I'm creating a log-in box for my Flex application. However, I'm required to apply a specific design to this box that I have to change the title bar height.

The component I'm using is spark.components.Panel. I just can't find the property of this 'Panel' component to change the feature.

View 1 Replies

Flex :: Collapsing A Spark BorderContainer Dynamically Does Not Collapse Its Children

Sep 2, 2010

protected function lbHideQuery_clickHandler(event:MouseEvent):void
{
if (lbHideQuery.selected)
{

[Code]....

View 1 Replies

Flex :: Spark BorderContainer - Draw Border For Specific Sides?

Dec 6, 2010

Is there a way to easily specify on which sides a border is drawn for Flex 4's Spark BorderContainer?[URL]But that uses MX styling which seems like a hack. Is there a better or 'correct' way without having to build a skin? It seems incredibly silly to build a skin for a 'Bordered' component when this is a very common use case.

View 1 Replies

Flex :: Setting Spark List Height To Its Content Height?

Apr 1, 2010

How to set a Spark List height to the height of its content?Tried this:

var lastRow:IVisualElement =
myList.dataGroup.getElementAt(myList.dataGroup.numElements - 1);
myList.height = lastRow.y + lastRow.height;

It works in case of a single item, but lastRow is null in case of more items.

View 5 Replies

Change Default Width And Height Of Dropdownlist?

Apr 19, 2011

I want a dropdownlist that is wide enough to accommodate the larger item in the dropdown in display area of the main control.(.i.e. dropdownlist with the functionality of MX Combobox)

View 6 Replies

Flex :: Change BorderContainer Background Color With AS

Oct 7, 2010

I'm trying to change the background color and or text color of a BorderContainer in flex 4 using Action Script, but have not idea how to. The Border Container component doesn't seem to have any properties like:
idname.color = "#333333";
idname.backgroundcolor = "#333333";
How might I go about doing this?

View 2 Replies

Flex :: Removing Default Styling From (spark) ItemRenderer?

Sep 19, 2011

I'm trying to make a horizontal list of labels with a space in-between them (for use as part of a ticker tape).Labels outside of a list have a transparent background but as part of either the ItemRenderer or List, they get a white background. My assumption is that this is part of the default styling applied to a Spark ItemRenderer.Question - Is there any way to totally get rid of all default visual stylings applied to an ItemRenderer?

protected var messages:ArrayCollection = new ArrayCollection( new Array("1", "2", "3", "etc") );
<s:List dataProvider="{messages}" itemRenderer="SimpleTextRenderer">
<s:layout >[code].....

View 1 Replies

Flex :: Copy/modify The Spark Skin For The Default Button?

Jun 20, 2010

I'm trying to copy/modify the spark skin for the default button, but not sure how to find that skin. When I hover over <s:Button and Ctrl + Click it, it takes me to the Button class, but there isn't any skin information there.

View 1 Replies

Flex :: Setting Spark DataGrid Column's Default Sort On Application's CreationComplete

Sep 8, 2011

I have a spark DataGrid component with several columns and I want to have my application default to descending order on the first column in the DataGrid. I would like to use the built-in default sort that occurs when clicking the top header once. I have no need to sort the ArrayCollection I'm working with or change what the comparators are.I also want any user-generated sorting such as clicking on a different column's header to override the default sorting.

View 1 Replies

Flex :: Spark Percent Height Not Working?

Feb 24, 2010

First of all I know there is a spark VolumeBar component but, for design requirements I can't use it..

I'm trying to create a custom component but heights are not responding as should. [Update] This is were I call the class

<components:VolumeSlider steps="4" height="100" /> The problem is that the volume slider is adapting perfectly, but My custom items component doesn't.

[Code]...

View 1 Replies

Flex :: Set Height Of Button In Spark ButtonBar?

Feb 8, 2012

i have the following code:

<s:ButtonBar id="tabs" y="15" left="0" height="31"
change="VideosMenuBar_changeHandler(event)" requireSelection="true">
<s:layout>[code].........

how can i change the height of the buttons in this buttonbar?? is it possible without extra skin class?

View 1 Replies

Flex :: Determine The Height Of A Spark Label That Becomes Multiline?

Dec 9, 2011

I am trying to determine the height of a Spark label that becomes multiline at runtime (due to width property being set), to account for text overflow.

(For a spark label named Title) I have tried:

Title.measureText(Title.text).height - this seems to return only the height of one line. (Due to differing screen-sizes and font rendering, I don't know in advance how many lines the text would overflow to...)

Title.height - this seems to return the height of the label size (before being re-adjusted at runtime for multiline text flow)

Both properties above return an unchanging value even when different text lengths/multiple lines long are filled in .text

Is there really no way to determine the exact height of an overflow Spark label?

I am admittedly not that familiar with the Flex API but after scouring the manual for quite some time, I am still unable to place this title label with the proper spacing.

View 2 Replies

Flex :: Get The Line Height Of The Text In A Spark Label?

Jan 31, 2012

How do you determine the line height (in pixels) of the text in a Spark Label?

View 2 Replies

Flex :: Resizing A Spark Group By Setting Width And Height?

Apr 28, 2011

I have been given the seemingly simply task of resizing a Group container by setting width and height explicitly in response to user interaction. However, changing these values have no effect on the size of the container at all. Changing scaleX and/or scaleY will change the size of the container just fine, but this is not the behavior I am after.I have tried overriding updateDisplayList() to set a specific width and height, but this has not yielded the desired results.

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

[code]......

View 2 Replies

Flex :: Spark RichEditableText Word Wrap With Percent Width And Fixed Height?

May 11, 2011

I know this question has been asked before but the other solutions didn't work for me quite well. here's my sample application.

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

[code].....

View 1 Replies

Flex :: Prevent A Default Chart Item Roll Over Highlight In A Spark Column Chart?

Mar 3, 2011

I'm trying to prevent a default chart item roll over highlight in a Spark column chart.If you look at any of the chart examples on this page , when you roll over any of the chart series items, they turn a darkened shade of their original colour. This is what I want to prevent.

So far I have had no luck with using the itemRollOverColor property, as this only allows you to set it to one specific colour for the whole chart (my app has several different coloured series on the chart at once). Also, trying to leverage the itemRollOver event (with preventDefault() etc) hasn't worked either.

View 1 Replies

Flex :: How To Change Default's Mx:Form Layout

Mar 15, 2011

I need an horizontal layout on my forms, they look like this:

[Code]...

I'm very confused about the new Flex 4 architecture...

View 1 Replies

Flex :: Change State When Hover On Another Spark Element?

Sep 5, 2010

How to set a hover state (upSkin) when hover on another element? This example is not working on spark:

[URL]

Would like to do something like this:

<s:Button id="but1"/>
<s:Button label="change" mouseOver="button2_mouseOverHandler(event)"/>
protected function button2_mouseOverHandler(event:MouseEvent):void{
//make but1 look like I'm hovering it
}

View 1 Replies

Flex :: Change Background Color In Spark VideoPlayer?

Sep 9, 2010

is there any way to change the black in background in the VideoPlayer component that comes with Flex 4 ?

I can change every color but i can't change the black in background.

View 2 Replies

Flex :: Spark Buttonbar Change Label On Rollover

Sep 12, 2010

I've got a spark buttonbar w/ a dataprovider as follows:[code]By default, the button's labels will be "Dave" and "Brenda", respectively. How can I dynamically change the label to the "addr" field when a user rolls over the button?

View 1 Replies

Flex :: Spark TitleWindow's Titlebar FontSize Change?

Aug 25, 2011

While I was trying to change the fontSize of titlebar of TitleWindows, the whole container changes to new font Size. But I do not want to achive this. I would like to get it only on the titlebar.The code I have used (not successful)

<s:TitleWindow name="MyTitleWindow"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"

[code]....

I am using Flex4 and Spark.

View 2 Replies

Flex :: Change Dataprovider In Spark List That Has Itemrenderers?

Mar 13, 2012

In flex 4.5, I have an application that has a BorderContainer that loads a spark list (mxml style - _myList and the borderContainer is stored in a library outside of the parent application) that loads an arrayCollection with an itemRenderer (I should note said itemRenderer is not an inline renderer - on selection of an item in the list, the itemRenderer expands, loads a particular control within the item renderer based on data passed from the selected item in the list) and allows the user to perform a search. This works all well and good on startup/load, until I try to change the dataProvider for the list (my app allows users to switch data sources which then creates a new dataProvider with new variables). I have tried:

[Code]...

View 1 Replies

Flex :: Spark - Change Style Of Selected TAB In TabBar Dynamically?

Jun 30, 2011

I want to change the background color of selected tab in spark TabBar control(Flex4). Till Flex3 we could have use the following code, bt it is not working in FLEX 4.

<fx:Script>
<![CDATA[
protected function tabbedPanel_clickHandler(event:MouseEvent):void

[code]........

View 1 Replies

Flex :: Change PaddingLeft And PaddingRight Of Spark.components.Button?

Mar 27, 2012

The class 'Button' in package mx.controls has the style 'paddingLeft' and 'paddingRight'. But now I don't want to use this old Halo theme anymore, I'm moving everything to Spark.

However, I can't find these padding styles in spark.components.Button, and the documentation [URL] doesn't show that spark Button has those styles.

View 1 Replies

Actionscript 3 :: Change The 'Default Application' Class In Flex Builder 3?

Jul 26, 2009

When creating an Actionscript Project in Flex builder 3 an application class is automatically created and dropped in the root of your source folder. In my case my source folder is called src/.Is it possible to change the default application class to a class which is not directly in the root of the src folder? It seems when right-clicking on class files which are in sub packages the 'Set as Default Application' option is not selectable.Is this done on purpose by Adobe to enforce all pure AS projects to have their application class residing in the top-most package?

View 3 Replies

Flex :: How To Skin Or Change Default Cursor (White Arrow)

Aug 19, 2009

How can I skin, or otherwise change, the default cursor (white arrow) displayed in a Flex application?

View 3 Replies

Flex :: Flash Builder: Change Default Suite For Unit Tests?

Dec 7, 2010

What are the steps to change your default suite when running unit tests in Flash Builder 4 with PureMVC?

View 2 Replies







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