Why is the results moving down?

I have an application with two states. One includes an input form and the other has the results of the computations of that data. I do a removechild for the input fields and an addchild to put in the results.
Somehow I'm getting a margin at the top of the results page. It is about 3/4" so it is very noticeable. Because (I'm guessing) I position to the first result field (a textInput that is not editable), the page positions with the above margin (or whatever is causing it) and half the top banner off the top of the page.
1) any ideas of how to isolate the problem?
2) any ideas of how to fix the problem?

This is the code, hopefully enough to show the problem.  Attached are two (poor color) gifs to show it.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
  xmlns:mx="http://www.adobe.com/2006/mxml"
  xmlns:DHSComp="components.*"
  initialize="setInitAccessible();"
  applicationComplete="setInitLanguage();"
  backgroundColor="#dedacf"
  layout="absolute"
  paddingLeft="5"
  paddingRight="5"
  height="100%"
  verticalScrollPolicy="on">
  <mx:states>
    <mx:State name="Result">
      <mx:RemoveChild target="{fsPageTitleNoticePanel}"/>
      <mx:RemoveChild target="{fsPageTitleNoticeVBox}"/>
      <mx:RemoveChild target="{householdInformationCanvas}"/>
      <mx:RemoveChild target="{householdInformationPanel}"/>
      <mx:RemoveChild target="{householdInformationVBox}"/>
      <mx:RemoveChild target="{incomeAndAssetsCanvas}"/>
      <mx:RemoveChild target="{incomeAndAssetsPanel}"/>
      <mx:RemoveChild target="{incomeAndAssetsVBox}"/>
      <mx:RemoveChild target="{expensesCanvas}"/>
      <mx:RemoveChild target="{expensesPanel}"/>
      <mx:RemoveChild target="{expensesVBox}"/>
      <mx:RemoveChild target="{standardUtilityAllowanceCanvas}"/>
      <mx:RemoveChild target="{standardUtilityAllowancePanel}"/>
      <mx:RemoveChild target="{standardUtilityAllowanceVBox}"/>
      <mx:RemoveChild target="{calculateButton}"/>
      <mx:RemoveChild target="{resetButton}"/>
      <mx:RemoveChild target="{accessibility}"/>
      <mx:RemoveChild target="{resultButton}" />
      <mx:AddChild relativeTo="{bodyFormHolder}" position="firstChild">
        <mx:VBox id="resultsPageBox"
            backgroundColor="#dedacf"
            width="100%"
            verticalScrollPolicy="off" horizontalScrollPolicy="off">
            <mx:Canvas id="rAccessibility"
                width="100%" >
                <mx:HBox id="rAccessHBox"
                    minWidth="640" width="100%"
                    x="0" y="0">
                    <mx:VBox id="rAccessSizeFontVBox"
                        width="160">
                        <mx:HBox id="rHSliderFontHBox"
                            width="100%">
                            <mx:HSlider
                                id="rSizeFontIndex"
                                labels="['0','1','2','3','4','5','6']"
                                toolTip=" "
                                liveDragging="true"
                                maximum="6"
                                snapInterval="1"
                                minimum="0"
                                change="changeFontSize();"
                                tickInterval="1"
                                showDataTip="true"
                                visible="true"
                                tickThickness="3"
                                width="100%"
                                tabIndex="10" />
                        </mx:HBox>
                        <mx:HBox id="rAccessSizeFontLabelHBox"
                            width="100%">
                            <mx:Label id="rAccessFontSizeLabel"
                                width="100%"
                                textAlign="center"
                                text=" " />
                        </mx:HBox>
                    </mx:VBox>
                    <mx:VBox id="rAccessContrastBoxLabel">
                        <mx:HBox id="rHSliderContrastHBox">
                            <mx:HSlider
                                id="rContrastIndex"
                                labels="['Normal','High']"
                                toolTip=" "
                                liveDragging="true"
                                maximum="1"
                                snapInterval="1"
                                minimum="0"
                                change="changeContrast();"
                                tickInterval="1"
                                showDataTip="true"
                                tickThickness="3"
                                width="1%"
                                tabIndex="15"/>
                        </mx:HBox>
                        <mx:HBox id="rAccessContrastHBox"
                            width="100%">
                            <mx:Label id="rAccessContrastLabel"
                                styleName="textNormal"
                                width="100%"
                                textAlign="center"
                                text=" " />
                        </mx:HBox>
                    </mx:VBox>
                    <mx:HBox id="rPageButtonBox"
                        horizontalAlign="right"
                        width="100%">
                        <mx:Button id="rLanguageSwitchButton"
                            label="{pageButtonLanguage}"
                            rollOverEffect="{glowButton}"
                            click="swapLanguage()"
                            toolTip=" "
                            tabIndex="5" />
                    </mx:HBox>
                </mx:HBox>
            </mx:Canvas>
<mx:VBox id="windowWorkspace"
    backgroundColor="#dedacf"
    height="100%"
    width="100%">
<!-- ********************************************************************** -->
<!-- ** header area ******************************************************* -->
    <DHSComp:DHSHeader id="headerComp"
        SNAPText="{pageSNAPText}" />
<!-- ********************************************************************** -->
<!-- ** start of the form area ******************************************** -->
  <mx:Canvas id="formHolder"
    minWidth="650"
    width="100%"
    backgroundColor="#dedacf">
    <mx:Text id="fsPageTitle"
        text="{pageTitleText}"
        styleName="pageTitle"
        width="100%"
        textAlign="center" />
    <mx:Form id="bodyFormHolder"
        minWidth="640"
        width="100%"
        y="33">
        <mx:Canvas id="accessibility"
            width="100%" >
            <mx:HBox id="accessHBox"
                minWidth="640" width="100%"
                x="0" y="0">
                <mx:VBox id="accessSizeFontVBox"
>
                    <mx:HBox id="hSliderFontHBox"
                        width="100%">
                        <mx:HSlider
                            id="sizeFontIndex"
                            liveDragging="true"
                            maximum="6"
                            snapInterval="1"
                            minimum="0"
                            labels="['0','1','2','3','4','5','6']"
                            toolTip=" "
                            change="changeFontSize();"
                            tickInterval="1"
                            showDataTip="true"
                            visible="true"
                            tickThickness="3"
                            width="100%"
                            tabIndex="10"/>
                    </mx:HBox>
                    <mx:HBox id="accessSizeFontLabelHBox"
                        width="100%">
                        <mx:Label id="accessFontSizeLabel"
                            width="100%"
                            textAlign="center"
                            text="Text Size" />
                    </mx:HBox>
                </mx:VBox>

Similar Messages

  • Why has the keyboard moved up the screen?

    Why has the keyboard moved up the screen, blocking screens that I'm typing on? Is there a way of reverting to how it was at the bottom of the screen?

    I beleive you use the keyboard key to,drag it down, yes. You can simply drag the two sides together if the keyboard is split.
    Like I said, I have it turned off. Never use either setting.

  • Why does the screenline shut down after about 2 clips?  the tutorial worked fine.

    Why does the screenline shut down after about 2 clips?  the tutorial worked fine.

    I don't know about MOD files, since I don't use them
    >As a beginner
    LOTS of learning information in these links
    Online User Guide http://help.adobe.com/en_US/premiereelements/using/index.html
    -Page to download current PDF http://helpx.adobe.com/premiere-elements.html
    Importing Video http://forums.adobe.com/thread/1065281
    -and project settings http://forums.adobe.com/thread/1112086
    Saving & Sharing http://forums.adobe.com/thread/1137128
    -Sharing to DVD or BluRay http://forums.adobe.com/thread/1137645
    -Sharing for Movies http://forums.adobe.com/thread/1051093
    -Sharing for Computer http://forums.adobe.com/thread/1058237
    Steve's Basic Training Tutorials... steps are the same for several versions
    -http://forums.adobe.com/thread/537685
    -v11 http://www.amazon.com/Muvipix-Guide-Premiere-Elements-version/dp/1479311200/
    -All http://www.amazon.com/Tricks-Adobe-Premiere-Elements-Muvipix-com/dp/1451529724/
    -and http://forums.adobe.com/thread/498626
    -and http://prodesigntools.com/four-hours-free-video-tutorials-new-photoshop-elements-9-pse9.ht ml
    -and http://prodesigntools.com/five-hours-free-tutorials-photoshop-and-premiere-elements-7-and- 8.html
    FAQ http://forums.adobe.com/community/premiere_elements/premiere_elements_faq
    TIPS http://forums.adobe.com/community/premiere_elements/premiere_elements_tips
    Another help site http://muvipix.com/ or http://muvipix.com/phpBB3/

  • Using FireFox 10.0.2, when I try to bookmark a page, why is the bookmark pull down menu faded?

    I can provide a screen shot of the problem if it will help. I also uninstalled 10.0.2, went back to the 9.0.1 version and this occurs too. I checked all options and I could not find anything that would change the background of the bookmark menu. I did find that if the web page had a dark background, the bookmark pull down menu was visible but not visible on a white web page.

    Thank you cor-el for the response. I tried disabling the "hardware acceleration", shut down Firefox then restarted and get the same results. I can see the pull down menu well when there is a dark background. I may just have to wipe the system, reload the o/s then reload Firefox. Do you think it would help to load an earlier version of Firefox?

  • Why does the Battery run down so fast?

    Im a first time BB user And really need to know how long should the BB 8520 battery life last- I bought the phone 4 days ago And had to charge it twice since then.
    I understand why the battery ran down the first 2 days- used the phone a lot to input data And load pictures, music..... But after the second charge I hardly used the phone( only received text message, phone calls ) I did no browsing, no facebook, no IM, didn't listen to music, didn't take any pictures, didn't receive any emails yet- my BIZ has not yet been activated.
    This morning it was 100% And now its 70% - And as I said I only received And sent text messages (SMS) And phone calls
    am I being silly And should I just expect that from BB.
    And should I switch the phone off at night or just leave it in bed side mode?

    Dear friends from BlackBerry,
    First, I´m sory for my bad english.
    I live in Brazil and i have a blackberry curve 8520, my problem is the battery.
    I try shut off all conections (the wifi, bluetooth, including the moblie phone conection), with the keyboard locked and the phone in stand-by, but the battery dies before the 5 hours (run down very fast).
    I want to know how i fix it?
    Thank for attentio and the help.
    Carlos Leonardo de Oliveira Velasco.

  • Why is the result different

    **the only different point is whether or not the construct function has "void
    "keyword,but the result is completely different,who can give me an answer ,thanks.
    *the result: a[1234]=0
    public class SynTest4
    static int a[]=new int[10000];
    public void SynTest4()
    synchronized(a)
    for (int i=0; i<10000; i++) { a[i]=i; }
    public static void main(String[] args)
    new SynTest4();
    System.out.println("a[1234]= "+a[1234]);
    *the result:a[1234]=1234
    public class SynTest4
    static int a[]=new int[10000];
    public SynTest4()
    synchronized(a)
    for (int i=0; i<10000; i++) { a[i]=i; }
    public static void main(String[] args)
    new SynTest4();
    System.out.println("a[1234]= "+a[1234]);
    }

    A constructor has no return type. If you create a method with a return type, it is not a constructor. If you create a class without a constructor, the compiler will automatically create a default constructor.
    So, your "public void SynTest4()" is a normal method, not a constructor.

  • Why do the results between the OCR in the Vision Assistant and OCR in a VI generated from the vision assistant might defer?

    Hi everybody,
    I had a problem while I was trying to run OCR on my image in my LabVIEW code. The algorithm did not detected what I was expecting on the image.
    I decided to run the test on the vision assistant and it worked perfectly: I got the expected results.#
    I assumed then that my code had different parameters, so I decided to generate a VI from the vision asssistant and run it on LabVIEW for the same image, just to verify.I did not change anything on the VI (all parameters are the same), and I used the same image. Surprinsingly the results are different between the assistant and the VI. That strikes me a lot! I have checked alll possible configurable parameters and they have the same values as in the Vision assistant. Does anybody have an idea about what could be the reason of this behaviour?  Thanks
    Regards,
    Esteban

    Esteban,
    do you use the same images for OCR? Or do you take a new snap shot before running the OCR?
    What steps of debugging did you use in LV?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Why do the results between the OCR in the Vision Assistant and a VI generated from the vision assistant might defer?

    Hi everybody,
    I had a problem while I was trying to run OCR on my image in my LabVIEW code. The algorithm did not detected what I was expecting on the image.
    I decided to run the test on the vision assistant and it worked perfectly: I got the expected results.#
    I assumed then that my code had different parameters, so I decided to generate a VI from the vision asssistant and run it on LabVIEW for the same image, just to verify.I did not change anything on the VI (all parameters are the same), and I used the same image. Surprinsingly the results are different between the assistant and the VI. That strikes me a lot! I have checked alll possible configurable parameters and they have the same values as in the Vision assistant. Does anybody have an idea about what could be the reason of this behaviour?  Thanks
    Regards,
    Esteban

    Hi Peter, 
    Strange. It runs here. Attached the screeshot you requested.
    Regards,
    Esteban
    Attachments:
    Capture.png ‏135 KB

  • If you rub the edge of the fingerprint scanner in a circle, why does the screen drop down?

    MY daughter was drawing circles around the metal part of the fingerprint scanner and noticed the screen contents moves to the bottom of the screen instead of the top. Then it goes back to the top when touched again. Why does it do this?

    That is a feature of the 6 & 6 plus.  I believe it is called reachability.  It moves the furthest section of the screen down to allow for one handed use.

  • Why is the image moving when I print on 300gsm card, but is fine on 160gsm paper?

    Hello,
    I am printing a double sided invitation for a customer. I am not sure what it was originally set in as I have only been given the pdf up to now. The invite has a thin black line around the writing.
    I am trying to put a proof together so they can see it on the colour they've chosen, when I cut it out (using their crop marks) on 160gsm everything lines up nicely, however, when I cut it out from 300gsm I end up cutting either the top or the bottom off as the image has moved. I am sure this is down to the weight of the card but how do I (or the customer) counteract this and what is the term for the issue? (If there is one)
    Thanks
    Louise

    Can you duplex the 300 gsm card inside the machine?
    Or are you forced to print one side and then run the cardstock through the machine 2nd time to print the other side?
    Double sided heavier cardstock is more problematic than paper and this issue is a common occurence.
    Are you using the bypass tray or (if your printer allows it from a drawer?. usually there are limits to the stocks that can be run from drawers on smaller, less expensive machines)
    It may help if you make sure the correct media type/weight  and  drawer/bypass tray is selected correctly in your print dialog/print setup.
    There may be more than 1 place to select these parameters; check them all
    Also check the media/weight setting on the printer itself for the bypass or drawer you are using.
    There may be no real solution to achieving perfect registration from front to back on all type of media in your machine.
    Good Luck!
    Just realized you are printing from PDF. Make sure that Actual Size in selected each time in the print dialog when printing both sides. sometimes it defaults to Fit when you aren't paying attention and this can cause problems.
    You wrote: The invite has a thin black line around the writing.
    Do you mean they placed a stroked box around the edge of the invitation? This is a no-no. The crop marks should be adequate. A thin stroked box at the trim size will be an invitation to disaster when cutting a stack of printed items, even single sided would be hell, Double sided, forget it. Have them remove the box and just have crop marks. When cutting you will obviously cut off some of the marks which makes it difficult to determine the later cuts.  This is when you get out a ruler to determine the settings you need to make for these cuts using your cutter.

  • Why is the purchasing option down and when will it be back up?

    I'm trying to buy a record and it keeps saying they credit card option is down right now.  when will it be back up?

    Are you sure the card info is valid.  I just made a purchase with no problem.  If there is a system outage there is no one here that can help you.  This is a user forum.   You would need to contact Apple directly.

  • Why is the iphone 4 down to $0 now ?

    just wondering why it says $0 on the website , i know its obiosly not but can you tell what this means
    thankyou

    It means that when you get a contract that you can get the iPhone 4 for free. Whereas with the iPhone 5 and 4S in most cases you have to pay a bit towards the handset when getting a contract. It is just because it is the oldest handset that Apple now produce!

  • Since upgrading firefox why is the system slowed down to the point of frustration i.e scrolling upand down , clicking on pages it seems to take an age

    even filling this form in has taken a lot longer than just clicking and typing ,scrolling down a page it seems to pause then stutters . if i have various web pages open to compare something similair it seems to be slowing down . To write this some of the actions to write seems to halt and i am not a fast typer .just tried your installed plugins window it wont move

    Possibly something in the profile got damaged. You could try troubleshooting.
    * https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting
    I am seeing more and more of these complaints since Mozilla began trying to force updates. I think it is time to disable updates to Firefox and avoid the use of the "Check for Updates" button (since it no longer merely checks). You can see the current release version on the green button on this page:
    * http://sjc.mozilla.com/en-US/firefox/new/

  • Why is the cursor jumping down to a different field?

    I am working in Acrobat Pro 9. I actually have two slightly different senerios.
    First: I have two Textbox fields in my document that are named the same so that the second will auto-fill when the first is filled in. They are set to mm/dd/yyyy.
    When the first is filled out without using the /'s, an error appears that the user did not use the proper format. When I click the button on the error window, my cursor is sent to the second textbox instead of remaining in the first.
    Secondly: This is a similar problem.....Again I have two textboxes that have the same name...for the same reason. I have javascript attached to the first that will display an error if it is left blank and then uses a setFocus() to place the cursor back into the textbox. When the first textbox is left blank and triggers the error, the cursor is then forced to the second textbox of the same name.
    Does anyone know what I need to do in order to have the cursor remain in the first textbox?
    Thank you for any help that you can give.
    Rick

    For your first question, I think that's normal, though I suppose it could be considered a bug. The focus gets set to the first widget (#0).
    For #2, when you use the getField method, you can specify a particular widget. For example, if you have two widgets of a field named "text1", you can do:
    // Set focus to first widget (#0)
    getField("text1.0").setFocus();
    // Set focus to second widget (#1)
    getField("text1.1").setFocus();

  • Why is the result "0", not "1"?

    public class Test{
    private static int a;
    public static void main(String[] args){
    modify(a);
    System.out.println(a);
    public static void modify(int a){
    a++;
    Any idea?
    Thanks in advance!

    Variables are passed by value, not by reference in Java.
    Hence you are increasing a copy of your static class variale a. It is calles a, too, but has nothing to do with the class varibale. You can access the class variable by the this keyword.

Maybe you are looking for

  • Need help to learn BW.....

    Hi, All BW Guru, I am new to SAP BW, My Company is implementing SAP BW. i need Help from you all to Learn BW. if any one have below mention book then please send me... please..... BW305 (Reporting & Analysis), BW310 (Data Warehousing), BW330 (Data Mo

  • How to send the email to different email addresses from Workflow

    Hello, i an not getting that how to send the email from Workflow in SAP. plz give the steps to do that. i have done lots of time but system is not sending the email to different email address.

  • Pass-word field in scren painter...

    Hi all... I had created a text-box and a password field in screen-painter. Now what I want is, if the data in textbox and password field is matched than only it should goto next screen. else it should give a error message... I had written the followi

  • Safari will not go to nexxt page on Ebay and gives me this message ..

    .....Safari can't open the page "http://my.ebay.co.uk/". The error was: "cannot decode raw data" (NSURLErrorDomain:-1015) Please choose Report Bugs to Apple from the Safari menu, note the error number, and describe what you did before you saw this me

  • How to View Smartforms or SAP Script Forms in Web Dynpro ABAP

    Do anyone have idea of how to View Smartforms or SAP Script Forms in Web Dynpro ABAP? Please let me know. Thanks