Design of components flexible width

I have an application that has to work in two different widths.

First question, I can determine programmatically how big the width is as defined in the tag embed of the browser?

Then, I want to be as flexible as possible page layouts without having to hardcode the sizes of things according to the current resolution.  For example, I have a HBox.  It must be built as follows:

  • fixed button width
  • fixed button width
  • progress bar for flexible width
  • label width fixed
  • fixed button width
  • fixed button width

If I just put on the buttons & label widths to the absolute pixel measure, how the progress bar grow automatically to fill the remaining space?

By the time wherever the Application events start to fire, systemManager.screen should

be the size of the flash player in the browser

If you set the progressBar width = '100% ', it should be the only thing that

stretches in the HBox

Tags: Flex

Similar Questions

  • Design of a flexible storage solution

    How a storage solution must be designed so that you can shoot some parts and regular maintenance without impact on the availability and performance of your virtual machines?  For example - update firmware of storage without impacting VM availability / performance?  What are all the parts that need to be set up for this work and what are the best practices for planning of storage maintenance windows:

    i.e.

    -several redundant storage controllers and shoot at the same time.

    -storage vmotion, interpreted by VMware to move virtual machines off system supported and return on

    -What else should be in place to make this work and what are your experiences?

    Thank you

    NetApp did pretty well.  You have two controllers (they call for tax filers) in a single unit with close manual failover without loss.  When we upgrade software, we can failover all traffic to a file server, the offline files server upgrade, bring up, failover to that one and upgrade other filers.

    Now, this potentially affect performance if your file servers are regularly above 50% usage in all areas (CPU, memory, network, etc).  If they don't, performance is not hit at all (or very little).

  • Can IFrames cause flexible widths/heights?

    Sure that the answer is 'no', but just in case...

    .. .is there are anyway to dimensions of an iFrame that is equal to the sum of its content, such as a div or a span?

    Hello

    Unfortunately, your 'no' is correct. iFrames must have a non-negative value for width and height, which means that you can use the measurement standard/allowed, such as pixels and percentages values.

    PZ

  • Question of design architecture: layers of components

    I am so confused about how combine components and when I should inherit, and when things go into skins. I have a custom component tile that looks like this:

    plaintile.jpg

    Source (Simplified) looks like this:

    "< s:SkinnableContainer skinClass = 'skins. TileSkin""">

    < fx:Script >

              <! [CDATA]

    [Bindable] public var tileColor:uint = 0xFF0000;       / / Color of base tile.  The central area will be this color.

    [Bindable] public var tileThickness:uint = 4;            / / How high the tile seems to have his Center Party raised.

              ]] >

    < / fx:Script >

    < / s:SkinnableContainer >

    All drawing is found in the skin.  I have a subclass this component to have a LabeledTile:

    goldtilex.jpg

    Source (Simplified) looks like this:

    < components: tile >

    < fx:Script >

              <! [CDATA]

    protected static const int PADDING = 3;

    public function get text1 (): String { return Label1.text ;}

    public function set text1 (str:String):void {Label1.text = str ;}

              ]] >

    < / fx:Script >

    " < s:Label id ="Label1"x =" tileThickness{}"y =" tileThickness{}"

    {" height =" {}height - 2 * tileThickness}"width =" {} {width - 2 * tileThickness}"

    "" " maxDisplayedLines ="1"textAlign ="center"verticalAlign ="middle"

    {' {' paddingLeft = "{}PADDING}" paddingTop ="{} {}PADDING" paddingRight = "{}PADDING}" paddingBottom ="{} {PADDING}"/ >

    < / components: tile >

    I want to have a subclass of LabeledTile called LabeledTileWithGizmo that looks like this:

    goldtile.jpg

    I thought this might work:

    < components: "" LabeledTile width ="130" height ="32" tileColor = "0x0077EE"

    contentCreationComplete = "ContentCreated ()"> "

    < fx:Script >

              <! [CDATA]

    private function ContentCreated():void

                   {

    Label1.setStyle ( "fontSize", 14);

    Label1.setStyle ( "color", 0xFFFFFF);

    Label1.setStyle ( 'fontFamily', '"Trebuchet MS" BOLD, Arial, Helvetica, _without' );

                   }

              ]] >

    < / fx:Script >

    "" < components: Gizmo x = "100" y ="4" height = "24"/ > "

    < / components:LabeledTile>

    The gizmo appears on the tile, but the label disappears.  If I put the component Gizmo just next to the Label in the LabeldedTile element, they both get drawn.  But I want to have labeled the tiles that have no gadgets, as well as those who do.  I also have different types of gadgets.

    So, should I make a subclass of tiles with optional subcomponents?  And how could I do?

    Should I put more than this in TileSkin?  And the other components are States in the skin?

    I should have a different skin for each tile, LabeledTile and LabeledTileWithGizmo?  The second skin must inherit from the first skin and the third to the second?

    Can I get a skin for a component to set styles on a subcomponent (for example to have a LabeledTile set the fontSize, etc on the subcomponent Label)?  Or is it still possible.

    I am so confused on how all these elements must adjust.  Any idea would be appreciated.

    Your MXML for LabeledTile has Label1 as a child element in MXML.  When you subclass that class using MXML)

    Looks like what you want to do is subclass of SkinnableContainer to have a label, part of the skin and move your label in the skin.  In this way, when you add child elements to your container it won't replace the label with your child items.

    This article is a good start to learn more about the counting of spark: http://www.adobe.com/devnet/flex/articles/flex4_skinning.html

    If you follow the process above, so here are some answers to your specific questions:

    So, should I make a subclass of tiles with optional subcomponents?  And how could I do?

    > You could label an optional part of the skin, so if someone does not want the label will then appear, they would create a custom look that does not include it.  An alternative approach is to expose a property on your component showLabel who would control the visibility of the part of the Label.

    Should I put more than this in TileSkin?  And the other components are States in the skin?

    > Yes move the label on the skin.  You could use States or expose a showLabel property as I mentioned above.

    I should have a different skin for each tile, LabeledTile and LabeledTileWithGizmo?  The second skin must inherit from the first skin and the third to the second?

    > Looks like you could do all this with a single component and a skin by adding another part of skin customized for the gizmo. Legacy via MXML skins is not trivial to implement.

    Can I get a skin for a component to set styles on a subcomponent (for example to have a LabeledTile set the fontSize, etc on the subcomponent Label)?  Or is it still possible.

    > Yes, you should be able to do this, simply call setStyle on the part of the skin

  • I designed my home page with a text carefully prepared, however when I 'Preview in a browser Page' text is spent?

    Design:

    Untitled-1.jpg

    Page in the browser:

    Untitled-2.jpg

    Help, please!

    The page in the first picture scrolls completely upward?

    It seems to me that you use the part of the area of width of the browser (the part of beige in the image below) to design your page on. It's a bit thing. The width of this area is not fixed, so what you see in Muse is just an indication that there will be a 'space' on each side of the page. But it's not exactly this specific width. So try to keep the specific parts of your design in the horizontal width of the page (the yellow part), and don't be surprised if this area Blue in your page is wider or more narrow on some screens! That's why your full screen photo wil need to stretch and fill the frame with different views.

    Welcome to the flexible world of Web design...

  • How to make my Web page 100% width on any resolution of the Office?

    Hello

    I designed a model of Web site on Photoshop with dimensions of 1280 x H: 2464 W:, but when you put the JPG file on the blank home page

    to see how it would look and fit, he was not fill the entire screen and was rather Center and white left and right there.

    I am posting on my desktop which is 1920 x 1080.

    I'm new to Muse, so I'm not sure what is the best size settings to choose for a Web site that would work perfectly on almost any office.

    An example of the style of the site, I want to create is the site Web of Nestea

    For the header and the footer of my site, I have a huge image instead of a solid color.

    I know that images must be really big so that they are not stretched and quality in bulk, but

    If someone could tell me the dimensions and parameters to be set when creating a new website so that

    I was able to re-layout of the site with the same dimensions and that I placed the JPG file to see how it

    would look, he would fit edge to edge and not bad quality.

    Thank you

    Hello

    You can find below for useful resources to help you get started with a site of flexible width in Muse similar to the example you provided get.

    http://TV.Adobe.com/watch/Muse-feature-tour/Muse-design-for-flexible-browser-width

    https://helpx.Adobe.com/Muse/how-to/add-100-width-slideshow.html

    http://helpx.Adobe.com/Muse/using/using-fill-browser-fill-options.html

    http://TV.Adobe.com/watch/learn-Adobe-Muse-CC/adding-scroll-effects/

    http://helpx.Adobe.com/Muse/using/scroll-effects-opacity-slideshow-animate.html

    See you soon,.

    Vikas

  • How the neck down width of track?

    I am relatively new to the map layout (which means most of my drawings so far have been fairly simple). I'm working on my first layout of the USB and examples of manufacturer all have a width of little trace leaving the IC pad, then growing to the ~ 27mils then decreases to the level of the USB connector. I also saw these types of traces in power applications. How do you achieve this technique of layout in Ultiboard without the use of copper pours? Or if anyone has other ideas on the willingness of USB, maybe a tool or Ultiboard functionality, I'm not familiar with which facilitates differential traces to the road. Joined an illustration of the technique, I am trying to achieve.

    Thank you for your time

    This can be done in several different ways.

    One is built in automatic shrinkage of path in Ultiboard. In the global preferences tab PCB design there is a trace of Auto shrink checkbox. Allowing it should produce the desired results as it is designed to decrease the width of the tracks automatically to avoid any error of DRC. Because it depends on the DRC and parameters of width of minimum follow-up that you need to make sure you have them put correctly into editor netlist for the nets.

    Another method is to change while routing. If you change the width by using the drop-down list on the toolbar settings to draw, the width of the track will change immediately while you continue routing. I find that this method is much easier with the follow - me router you can set exactly where the width of the track changes.

    The last option is to change once the routing is almost finished. You can go back and double click on any section of track and change the width of the track in the general tab.

  • Why the 100% width button is not available for images? (its still working for rectangles)...

    Hello! I can not simple images to work with flexible width... any ideas?

    You must set your picture as a fill to get 100% width. Draw your box to your image and then use the fill tool to insert your picture as a fill.

  • Browser width problem

    Hi all

    First of all my apologies in advance if this is an easy solution, as I am new to dream. I like to keep flexible width on my webpage, but I'm having a problem where the content is able to scroll left on top of my menu when the browser is sized down. Does anyone have any suggestions on how to avoid this? How to set a width fixed beyond a certain point?

    Here is my site if you want to see the number: http://www.the-fir-tree.com/

    I tried to attach the following page CSS with no luck:

    {#page online purchase

    min-width: 780px;

    Max-width: 1260px;

    margin: auto 10px;

    }

    {#page - wrap #inside

    margin: 10px 10px 0px 10px;

    padding-top: 10px;

    padding-bottom: 10px;

    My mobile site seems to work very well.

    Any help would be appreciated.

    Thank you!

    You don't need to add CSS to your page, you can adjust all the people in the site properties.

  • Dreamweaver: Design Mobile (checkerboard to separate fluid or CSS sheets?)

    I am a novice designer trying to build my responsive first site using 'Fluid Grid Layout'

    1. it would be more easy/difficult for me to build 'fluid grid design' using CS6 or build Web CSS liquid/liquid site regularly, and change/add separate CSS stylesheets later for the Tablet and mobile devices. (If separate style sheets are used)... How, once the separate CSS and HTML on the server, they realized/implementation / targeting different platforms (Tablet and mobile) rather than the traditional site destop

    2. 'the first Mobile' is confusing me a little: I can excluded divs (no view) on mobile, I am showing on the desktop? For example: I want to build a navigation bar that runs through the page 100% on the desktop. It would be too small, unreadable on mobile. I would like to build a separate navigation for mobile bar, but do not know to implement. Should I create separate for each platform stylesheets and/or to change the CSS for the Mobile, tablet or desktop CSS (all on a single sheet of style with questions from the media) appropriate

    3 similar to question 2 (counterclockwise): can I build a site mobile with some divs with widgets (and) using 'Presentation of the Flexible grid', which are not inherited by Tablet and desktop?... probably leading to my main question below:

    4 what is the best way to design a Web site for Mobile, Tablet and desktop? I want to build a site that can have different content (IE widgets, navbars, etc.) for each platform: mobile, Tablet and desktop. My experience (or lack thereof) only allows me to include all the same content (fluid divs), laid out just diffently on three platforms.

    Y at - it a compromise between an easier way of design (design of the flexible grid) from a design methood that has more of the content control and presentation (separate CSS sheets)

    Thank you very much hope, there is a good discussion.

    REAGENT:

    Any sensitive framework you use, you need a working knowledge of CSS Media Queries and Responsive Web Design Theory.

    Guideline for Responsive Web Design

    http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-Web-design/

    Introduction to CSS Media Queries

    http://www.Adobe.com/devnet/Dreamweaver/articles/introducing-media-queries.html

    More sensitive frameworks - including FGLayouts of DW, work on the first principle Tablet as Desktop & Mobile are derived their primary code page layouts.

    Zurb Foundation

    http://Foundation.ZURB.com/templates.php

    Reusable skeleton

    http://www.getskeleton.com/

    Initializr (HTML5 Boilerplate, sensitive or "bootstrap")

    http://www.Initializr.com/

    Extension "bootstrap" of the DMX Zone for DW

    http://www.DMXzone.com/go/21759/DMXzone-bootstrap/

    Project of seven packages of Page (CSS Templates)

    http://www.Projectseven.com/products/templates/index.htm

    MENUS:

    Look at jQuery MeanMenu - a plugin to support your current menu system.

    MeanMenu inside FGLayout:

    http://ALT-Web.com/FluidGrid/Fluid2.html

    Or buy a sensitive menu of the seven project.  They make excellent extensions, widgets and templates for Dreamweaver.

    http://www.Projectseven.com/products/menusystems/pmm3/index.htm

    Nancy O.

  • Web Design: Grids, RWD

    Hello!

    I have a few questions about the grids in the design process:

    1. When I design a Web site for a target group, which has a screen size minimum of 1280 x 80 Px, wouldn't it make more sense to design the Web site a little wider instead of using the 960 grid?
    2. In addition the site there is also a mobile version, but also an application - it is therefore necessary to build the sensitive site?
    3. Therefore, it is the choice of the designer to set the width of a Web site - it just should adapt to the targetgroup?
    4. It is true, that the 960 grid is used if often because only it fits for almost everything?

    I would be grateful if you could help me with my problem.

    Thank you very much!

    Responsive Web Design requires you to consider the following device widths.   Height is irrelevant because that is determined by the content of the page.

    Portrait of mobile - 320px

    Mobile landscape - 480px

    Small portrait of Tablet - 600px

    Small landscape Tablet - 800px

    Portrait of Tablet - 768px

    Tablet landscape - 1024px

    Laptop / desktop - 1024px to 1900px;

    Design a % according to the width in mind, you need only 3 comps of design (mobile, office, Tablet).

    However, if you use explicit breakpoints in pixels, you will need to design compositions of 5-7.

    Nancy O.

  • 100% - width of list will not become crazy

    I use Flex 4.6 and works in the manufacture of some simple lists.  Each line develops only insofar as the data it contains - in other words, the bars background and separator are as wide as the data in the lines.  I've not really applied a style yet but I started a large component.  I'm going crazy with this - any advice would be MUCH appreciated.  I know I'm must be missing something obvious, but I just can't see the forest/trees/etc.  Here's what I have.

    In my HomeView, I ask the list (shown in bold below).  I show the parent containers all the way up to just under the main view where it is useful.  I'm not show all closing tags - you get the picture:

    <! - scroller - >

    < s:Scroller width = "100%" height = "100%".

    horizontalScrollPolicy = "off" >

    <!-required b/c the scrolling can handle only a single component->

    < s:Group width = '100 percent"height ="100% ">

    < s:layout >

    < s:VerticalLayout gap = "0" / >

    < / s:layout >

    <! - events - >

    < components: BBWHeaderSubComp label = "Events calendar of today" / >

    < components: BBWListComp width = '100% '.

    labelField = 'the subject '.

    itemRenderer = "views.renderer.CalendarEventRenderer"

    dataProvider = "{journal}" / >

    As you can see, is a component.  Here is the entire component:

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:List ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    left = "0" right = "0".

    high = low '0' = '0 '.

    Width = '100% '.

    verticalScrollPolicy = "off" horizontalScrollPolicy = "off" >

    < s:layout >

    < s:VerticalLayout gap = "0" requestedMinRowCount = "1" / >

    < / s:layout >

    < fx:Declarations >

    < / fx:Declarations >

    < / s:List >

    Thanks for help.

    Try:

    Philippe

  • Width height component custom

    Hello!

    IM building a mobile app, so im trying to adapt and application for different mobile optimization.

    My problem is that I don't know how to resize a custom component I made, when canging orientation or the device.

    IM in my opinion I have the component:

    < components: MyComponent / >

    In this pane , there is just a fxg in illustrator:

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:View ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark" title ="MyComponent" xmlns:assets = "assets.*"> "

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < assets: MenKshirt / >

    < / s:View >

    If I follow these steps:

    < active width="90%"/: MenKshirt >

    She is properly scaling in the piece, but not im bird:

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:View ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark" title = 'Bird' xmlns:component = 'rate' >

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < component: MyComponent / >

    < / s:View >

    How can I do?

    Thank you very much!

    I would recommend affecting the size of the components of width = "100%" height = "100%" and then inside this component, you can calculate what size do the things inside based on the width/height, he is given and the proportions as you want to keep.  Here's a simple example (buggy):

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    "xmlns:local =" * ">

    private var targetAspectRatio:Number = 2;

    protected function group1_resizeHandler (): void

    {

    get the parent of the target size

    var parentWidth:Number = this.width;

    var parentHeight:Number = this.height;

    var parentAspectRatio:Number = parentWidth / parentHeight;

    start with the size of the target adjusted to being the same as the parent

    var adjustedTargetWidth:Number = parentWidth;

    var adjustedTargetHeight:Number = parentHeight;

    so if the elongation of parent and the source does not match we

    want the width or the height of the source to the equality of the parent company

    size, then set the other correctly

    If (targetAspectRatio > parentAspectRatio)

    adjustedTargetHeight = parentWidth / targetAspectRatio;

    on the other

    adjustedTargetWidth = parentHeight * targetAspectRatio;

    Target.Width = adjustedTargetWidth;

    Target.Height = adjustedTargetHeight;

    }

    ]]>

  • Using custom components will break my site if the framework is updated?

    Using custom components will break my site if the framework is updated?

    For example if I use the tink browser which is a version of the spark of the viewstack: http://www.tink.ws/blog/flex-4-navigator/

    In the case of update of the framework, it is possible that my sites Web stops working due to changes in the basic components used?

    I would like to know how can I design my components to ensure that they stop working?

    Thanks in advance.

    Any updates to the SDK that you recompile against could potentially break the desired site behavior. Could be with the SDK components or ones you've written yourself. It's just the nature of software development. Testing is the key.

  • New Amnesty International (and design software)-need a referral please

    Hello. I'm an artist, new in the use of software art. I draw and paint in a style that lends itself to conversion to vector diagrams. I had a designer do the conversions, and it costs me a lot of money, so I'm hoping to learn how to use I do my own vector diagrams. I downloaded the trial version and if I can use it with success I buy CS4 (although it may be overkill for what I need!) If you go to my blog of art, you will see what I do with the designer. www.cherylmalloy.blogspot.com

    If I lived in the West, I'd just do a course to learn how to use IT. However, I am in China, and I do not speak Chinese and I am unable to find a course in English.

    I want to be able to take a picture (the originals are too big for my scanner) and HAVE to convert the vector original pictures of diagrams. The lines in my original designs are variable in width and I often want to make the presentations after the original drawings are completed.

    I am very happy to find my way around the new software and computer, but I need a referral in the best process to use from my photo as a Jpeg of the design and then work to vectors.

    Can someone help me please? This is my latest work and I want to convert to vectors and fill with the color after conversion. (attached)

    Aussie

    I would rather agree with John Danelk here as a direct route might be the way to go. OT the Brush tool or the blob brush, but not in this case the pen tool that won't give you the kind of line or a schema you want. This is a close-up of a track directly using the only race and fill the space between the lines with black after his conversion to a live paint group. You can also use the live paint group tools to fill the other spaces of different colours. Ideal for what you want.

    This one, where and how the vectorization

Maybe you are looking for