Container not repsecting min sizes for children

Hi,
I have a basic problem with HBox / HDividedBox (and other
layouts) - see below code.
Button 2 on right has minimum width and this is respected by
the HDividedBox dragger - the button always get it's minimum width.
However Button 1 on left, which is inside a HBox can get clipped
when moving the dragger.
It seems that HBox isn't constrained to have minimumWidth
sufficient to always show it's children - or the HdividedBox is not
respecting it. Surely there a way to do this? I've tried playing
around with scroll bar policies etc but without luck.
BTW I find it odd that Buttons don't automatically constrain
min height/width to always so the label text (most other UI
toolkits I've used before did this by default) - but that is
another issue.....
Thanks for any hints !
Rick

Thanks - you are correct that the layout is correct when app
is initially started.
I *could* hardcode the HBox width and this would work - but
this would mean whenever any HBox child changed width I'd have to
adjust it.....
What I don't understand is why the HBox doesn't expose it's
minimum size as the minimum dictated by the sum of min sizes of
contained children and the various padding (the single button in
this case).
This is the normal behaviour I've seen on h/v box layouts in
other UI toolkits - e.g. the C++ based, cross platform Qt
http://doc.trolltech.com/4.4/layout.html
Also why does HDividedBox respect the minimum widths of it's
children - but HBox doesn't?
Cheers
Rick

Similar Messages

  • [svn] 3278: Fix min size for button skin to be 23, 23 and make default size 70,23

    Revision: 3278
    Author: [email protected]
    Date: 2008-09-19 16:49:01 -0700 (Fri, 19 Sep 2008)
    Log Message:
    Fix min size for button skin to be 23, 23 and make default size 70,23
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml

    Revision: 3278
    Author: [email protected]
    Date: 2008-09-19 16:49:01 -0700 (Fri, 19 Sep 2008)
    Log Message:
    Fix min size for button skin to be 23, 23 and make default size 70,23
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml

  • How do I determine the size of an event (cmd I does not show any size for events).

    How do I determine the size of an Event in iPhoto? (Cmd + I does not show size information at the event level).

    If you're running iPhoto 8 (09) select the event and look at the Info pane at the lower left hand corner of the window.  It will give you the number of photos and size:
    for iPhoto 9 (11) open the Event, select all of the photos in it and open the Info drawer at the right by typing Command+i.  The number of photos and size will be at the top of the Info drawer.
    OT

  • Min size for max-beans-in-cache / stateful EJB

    Hello,
    Weblogic (7 and 8) seems to have a minimum size for this setting.
    This minimum seems to be around 8 instances because when we set it to 3 for
    instance, the cache size reported by the admin console is 8 (with 8 active
    clients) and no ejb has been passivated.
    Is there an explanation for this behaviour ?
    Laurent

    I would also like to know the answer to this one.
    Can the default be changed via the administration console or config.xml? If so, where?

  • Side container not the right size

    My left side container does not go all the way to the bottom of the page like the right side one.  Any suggestions would be greatly appreciated.  url is www.cincywomensexpo.com.

    It looks like you want to apply faux columns to the page.  Here is a quick tutorial.
    http://www.paulgdesigns.com/faux-columns.php
    Gary

  • Min sizes for Scroller

    Hi,
    I'm trying to get scrollbars on my application when the screen size is below the minimal size. But I can't manage to make the scrollbars appear. I'm using sdk 4.1. I made a very simple app to test what was happening:
    <?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"
                   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:kapit="fr.kapit.*" height="100%" width="100%" >
        <fx:Declarations>
            <kapit:KapInspect id="ki"/>
        </fx:Declarations>
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <s:Rect height="30" width="100%" id="header">
            <s:fill>
                <s:SolidColor color="0x000000"/>
            </s:fill>
        </s:Rect>
        <s:Scroller id="bodyScroll" width="100%" height="100%">
            <s:Group id="body" width="100%" height="100%" minWidth="1000" minHeight="600" clipAndEnableScrolling="true">
                <s:layout>
                    <s:VerticalLayout/>
                </s:layout>
                <s:Button label="KI" click="ki.showPopup()"/>
                <s:Rect width="100%" height="100%">
                    <s:fill>
                        <s:SolidColor color="0xDCDCDC"/>
                    </s:fill>
                </s:Rect>
            </s:Group>   
        </s:Scroller>
    </s:Application>
    In KapInspect, when I decrease the size of my browser, I can see that the Group's minHeight is 600, and its height 533... Which makes the scroller never to appear.
    Does anybody please have a clue? What should I modify to get my scroll bars?
    Thanks
    Antoine Alberti

    Hi,
    if there is no answer, does it mean that the answer is somewhere else and I didn't find it, there is no solution or workaround, or no one is here to answer? If there is no solution, should I open a ticket somewhere?
    Thanks
    AA

  • [svn] 4693: FxScrollBar min size is now 35 pixels.

    Revision: 4693
    Author: [email protected]
    Date: 2009-01-27 14:25:29 -0800 (Tue, 27 Jan 2009)
    Log Message:
    FxScrollBar min size is now 35 pixels. The thumb is hidden if there isn't enough room to show at its minimum size.
    QE Notes: The new min size for scroll thumbs may require new mustella bitmap baselines.
    Doc Notes: None
    Bugs: SDK-17126, SDK-18039
    Reviewer: Evtim
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17126
    http://bugs.adobe.com/jira/browse/SDK-18039
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarThumbSkin.mxml

    Hi Simon,
    my concern was that a small inaccuracy of the input could result in a large inaccuracy of the output, similar to the difference of two nearly equal numbers. The method seems to make use of the perspective distortion of rectangles which sometimes is small, particularly if the distance is large and the patches are small. But I have convinced myself that the problem is academic and nothing to worry about, at least if one keeps to the recommendations of the shooting guide. Nonetheless I think that it is a good idea to check each profile by means of a test image before one uses it routinely. Thank you for your help!
    Helmut

  • Jewel case inserts are not printing full size

    Hi all,
    This might be a more appropriate topic to one of the general forums, but I thought I'd try here first...
    I have a color printer (Lexmark z23) hooked up to an old PC, and wanted to print out a color copy of a jewel case insert. (I only have a b/w laser printer hooked up to the Mac.) So I used the print command in iTunes but saved it to PDF instead of printing. I then emailed the file to myself to get it to the PC... but when I printed the PDF, the jewel case insert was "shrunk" slightly. It's not the right size for a jewel case anymore. I even tried "printing" (to PDF) on the Mac at 105%, but then it gets cut off at the edge of the page.
    Is this a printer problem or an iTunes problem? Or a problem caused by the backasswards way I have to print the things? I really don't want to have to buy another program just to print darn jewel case inserts. I don't need anything fancy, and the iTunes printing options would suit my needs just fine.
    Any help much appreciated!
    Erin

    Yes, Apple have done it YET AGAIN. Stuffed up the printing like they did in 11.0 and recified in 11.1. It is the coding error they had before, and fixed but now must have put the old coding back. Great customer service yet again (NOT!) - clearly programmed by a genius???!!

  • Hi - just using the new iMovie for the first time - apparently there should be a sidebar containing tools like "Content Library". Not on mine - even in Window view, Content Library features like text etc are all greyed out - obviously it's me - help?

    Hi - just using the new iMovie for the first time - apparently there should be a sidebar containing tools like "Content Library". Not on mine - even in Window view, Content Library features like text etc are all greyed out - obviously it's me - anyone help please?

    Sorry - I should have added that I have imported a Quicktime movie, originally created as an iPhoto slideshow.
    I want to create rolling credits at the movie end and apparently you can only do this using iMovie - can you help please?

  • I have a late 2008 white macbook.  I have a mini dvi to hdmi adapter, and a hdmi cord.  My cannot get my MB to detect an external monitor.  Nothing happens when plugged in.  Also, my display settings does not have an option for mirroring or arrangment tab

    I have a late 2008 white macbook.  I have a mini dvi to hdmi adapter, and a hdmi cord.  My cannot get my MB to detect an external monitor.  Nothing happens when plugged in.  Also, my display settings does not have an option for mirroring or arrangment tab

    Yeah, I'm having the same exact problem - It seems that the thunderbolt minidisplay port is only able to output the analog VGA signal, not the digital signal to support DVI and HDMI. This is a bug that came up after installing 10.7.1. I bought my macbook air with 10.7 on it, upgraded it to 10.7.1 as soon as I got it, so I have never been able to use hdmi or dvi with my macbook air. This is an extremely frustrating problem for me, I used HDMI on a daily basis with my PC. I have spent many hours at the genius bar running diagnostic tests so Apple can get as much information as possible to create a fix for this problem. I have been emailing tech support for 3 or so weeks now, they keep saying that they are working on a fix and it should be out soon, but 10.7.2 has come and gone and I still have no HDMI functionality with my MacBook Air!

  • IPAD Mini Locked after iOS upgrade, tried reset on iPAD did not work, plugged in and device not appearing in iTUNEs for reset/restore

    PAD Mini Locked after iOS upgrade, tried reset on iPAD did not work, plugged in and device not appearing in iTUNEs for reset/restore.  Just get an Apple Logo then a flashing blue screen as if it is caught booting up.   This has happened twice before and iTunes restore fixed it.  But this time device not appearing in iTunes.
    Running iTunes for PC.  But as stated restore has worked before!  Any help greatly appreciated!!

    Place the device in DFU mode and let iTunes restore the device to factory condition.

  • SOLVED - BIOS UPDATE "SYSTEM DOES NOT CONTAIN the NECESSARY WMI SUPPORT for this VERSION of HPQflash

    If you get infamous error when updating HP Portables (laptops/notebooks/ netbooks) BIOS within Windows:
    "SYSTEM DOES NOT CONTAIN THE NECESSARY WMI SUPPORT FOR THIS VERSION OF HPQFLASH":
    I am posting a solution found for own business laptop (HP 8540W & 8760W) so WebSearch engines index/register it in a few days - future sufferers come here and get a SOLUTION, finally.  Disreagrd previous "experts" advises, they don't work 100% & pity on TechSupport folks who get HP paychecks yet don't know products their co. designs/manufactures (on deep Technical level):
    Below is a SOLUTION (WORKING) !
    Go into Services (Run "services.msc" or get there thru ControlPanel-->AdminTools-->), find following 2 services ==> make sure they're running, chances are they're NOT (as in my case I keep them disabled unless need running):
    1) "HP Software Framework"
    2) "HP Service" [no typo - a real plain name]
    If not running, set Properties-->Manual and click "Start", make sure both are running.
    Rerun BIOS updater, choose option for "Within Windows" or something to that effect (using HPQ/ROMpaq updater), rather than "create USB BootDisk on Key", this time it should work without the hassle of a BootDisk creation.
    Should work from within Windows environment.
    Notes:
    a) Likely only one (1) service is responsible - namely "HP Software Framework" for HPQ Updater to fail, but doesn't hurt to reenable/restart both services.
    I in fact am responding to other customers who elect to Update BIOS within Windows, perhaps oldfashioned but to me Boot Updater is more natural & always works regardless of WMI Support.
    b) After done, don't forget:
    *) Recheck BIOS settings - update may've added new and/or changed old, so rescan tobe sure.
    **) Go BACK into Windows-->Services.msc & redisable both aforementioned Services if were originally disabled; or you're a computer Pro, you know what you're doing & like me keep all HP services disabled.  The ones we got on EliteBook 8760W are pests consuming system resources, you just enable "Software Framework" when occasional issues emerge with HP softupdate (typically no issues) & redisable after use, rest of services are bloatware - some attempt to overrun Windows Wireless console, some seekout HP Networked printers (Ethernet, Wireless, but not USB), some do this & that - I study/know which one does what and decided to disable all. This is called a "minimalist" philosophy & turns your machine into a fast beast, I recently sold a very obsolete 4-year laptop which however handles 3DMCAD & complex designs/simulations, better new machines out fo a store, as new machines are loaded w/bloatware chocking down resources.
    BUT nobody is requiring you to disable anything though.
    The solution merely states the fact:
    These 2 (or 1) services when not running halt BIOS Update "within Windows" (you can still run "BootDisk option", however, if preferred).
    Simply restartung them solves your problem.  Usually
    Ya'll have a good day and enjoy!
    ===========
    BELOW ARE IMPORTANT WARNINGS:
    1) IF YOUR BIOS UPDATE STILL FAILS, SOME OTHER PIECE IN WMI SUPPORT IS MISSING - IN MY CASE WAS THESE 2 SERVICES, BUT THERE'S REMOTE POSSIBILITY SOMETHING ELSE MIGHT BLOCK UPDATER.  DON'T WASTE TIME & CHOOSE "USB/BootDisk" options instead
    2) Once BIOS updater does its job, will ask to auto-restart - let it go on & complete, it will self-shutdown (click "Next" to skip 60-second timer), then do NOT turn it on manually!, wait - it'll turn on by itself in 15 seconds, let it boot into Windows, you're done!
    3) WARNING: close other apps before proceeding, be 100% sure your ACpower won't be interrupted or better yet - make sure battery is in/charged (so if ACpower accidentally disconnects, you're autoswitched onto battery) b/c power loss may result in severe damage to internal hardware.  In the old days it'd result in fatal damage, these days powerloss would still result in a major repair (ROM chip corruption).
    So to summarize: those 2 services I specified, are often responsible for whether HPQ/ROMpaq will or won't run.
    Other causes possible, but I've not witnessed; and if so - choose BootDisk option.
    ===
    Stan M. Starinski, MSEE.

    Hello Ceramics.
    Your ProBook is an Enterprise model.  It would be a good idea to also post your question to the HP Business Boards as those forums deal specifically with that kind of product.  Here is a link.
    Have a great day!
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Can I change iTunes & iPod display font (not font size) for selected files only?

    I loaded a Russian classical music CD into iTunes and iPod. On the original CD, titles, names etc. are written in cyrillic alphabet.  Once I loaded the CD into iTunes and on iPod this info was displayed unreadably in western alphabet.  Example:  "Èæå õåðóâèìû..." (Í. Ãîëîâàíîâ)Õîð È.
    I have cyrillic font on my Windows 7 computer.  Can I change the display font--for only these selected iTunes music files--to the cyrillic font?  Thanks!

    Does any one know how you can adjust the font size (point size) for the file
    names.
    Sadly enough you can't chance that, feel free to add a feature request for
    that, the more there ask for the bigger chance it will be realized.
    It would be great if the colors for the image name (background and font color)
    could be changed so the contrast could also be increased so it is also easier
    to read.
    And this the cheerful part, go to Bridge preferences General tap and play
    with the sliders for user interface and Image Backdrop until your satisfied.
    BTW using the slider for thumbnail size bottom right of the Bridge window to
    increase the thumbs does not increase the font but makes it nevertheless a
    little clearer.

  • My mini with IOS 7.0.6 is not showing an option for wish list in the options. What is happening?

    My mini with IOS 7.0.6 is not showing an option for wish list in the options. What is happening?

    The three Rs to IOS, try them in order until the issue is resolved;
    Restart - Press and hold the Power button until the red Power Off stripe appears. Swipe to power off. Press and hold the Power button to turn the device back on.
    Reset - Press & hold the Power and Home buttons simultaneously, ignoring the red power off slider, until the Apple logo appears. Then release both buttons.
    Restore - Connect the device to the Mac or PC with which it is usualy synced and use the iTunes app to restore the device to the factory settings. You can then restore the device with a previously made backup or set it up as new.

  • Adjust font size for notes?

    is it possible to adjust the font size for the .txt file to be read in the 'notes' folder in 'my computer'. i have synced it to my ipod but becuase of is size and the way the info is portrayed the width is too narrow on ipod thus getting a 'spill' onto the next line. is there anyway to save it as it is in its original .txt file. thank you
    Alan

    In the text note include some html code. html (hypertext markup language) is what is used to display this web page.
    You can Google "html font size" to learn more about it.
    Create a text note.
    The very first line of the text note should be
    <font size =-1>
    This will make the font 1 size smaller (it's a minus 1). Make it a + (plus) sign to make it larger.
    Add the rest of your note.
    The last line of your text note should be
    </font>
    to return everything to normal.

Maybe you are looking for

  • ICloud Restore stuck - keeps asking for old Apple ID

    Hello, I've just gotten a iPhone 4S that I want to restore from an iCloud backup (I've had a 3GS previously). Unfortunately I'm running into problems as the restore process just doesn't finish. Some settings are restored just fine (contacts, messages

  • Issue Downloading Oracle Database 10g Release 2 for MS Windows

    It took a couple of hours to download the software and "save" it to a folder. When I double-click on the setup.exe file nothing happens. I am not sure if there was a problem with my download (my internet connection is not the fastest). When that didn

  • Video Capture issues in Premire Pro CS3

    I bough an HP z200 Win 7 64 bits 8gb intel i7 870 quad core. I install the production premium CS3. everything is working fine. Now. the problem is when i was capturing video (dv) in the minute 8 it shows a messaje telling that the machine is running

  • Aspect ratio problem with consumer camera and Premiere Elements 11

    Hello everyone - I'm Steve. I'm new here. I do still photography on a pro level, digital and analog, but I am an absolute dummy with video...but then, I don't want to do much, just rudimentarily cut a few family videos, upload them, etc. However, I c

  • Importing packages in JSP

    Hi everybody ! I am trying to get a JSP page to access some java files I have placed in a package, by using the import statement at the top of the JSP page, i.e. <%@page import="x.y.z.*"%> So far so good, everything compiles and looks good, but when