Why don't flex height app to go beyond the height of the browser?

Hello

I have a flex application that allows a display of user data from a database such as a datagrid or a chart, but it does not correctly display in the web browser. The problem is that when the user changes between datagrid and table, the scroll bars appear vertically and horizontally, and the user must scroll to see the data correctly.

The app works:

A user selects a date, and between a duration of days and clicks which pulls back from the search database. By default, the data is then displayed in a datagrid control. The user can choose to see the data represented by different types of chart or as a datagrid by clicking on the "changeView()" button which opens a component popup for the user to select the chart type. Once the user selects the type of chart, the popup closes and in actionscript, the datagrid control is removed using the MessageCount.removeChildAt (1); and then the graphic component is added using the MessageCount.addChildAt (1); The datagrid disappears and the chart is displayed as expected, but the problem is now scrollbars appeared on the canvas or vbox component, I don't know which, and the user must scroll to see the data grid or chart.

Is there anyway to get the flex application to extend its height in the web browser, like a normal web page when the content is long, like an article or something?

My app code is shown below.

Thanks in advance,

Xander

Application

" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "height ="100% "layout ="absolute"xmlns:xgc =" " http://localhost/xgtools "creationComplete ="doAppInit ()">
< mx:Style source = "chartbox.css" / >
< mx:Script source = "chartbox.as" / >

< mx:VBox width = "100%" height = "100%" backgroundColor = "#ffffff" horizontalAlign = "center" >
< xgc:WebPageHeader title = "Tables of Stats' menuDataProvider ="{menuOptions}"showColorbar ="true"/ >

< mx:Form width = "100%" styleName = "searchForm" >
< mx:HBox width = "100%" styleName = "searchFormBackground" >
< mx:Label text = "" pick a date to search for: "styleName ="searchFormLabel"/ >"
< mx:DateField id = "searchDate" width = "94" height = "20" styleName = "searchFormDate" / >

< text mx:Label = "" duration to cover: "styleName ="searchFormLabel"/ >"
< mx:NumericStepper id = minimum "searchDuration" = "1" maximum = stepSize '366' = '1' maxChars = "3" width = "50" height = "20" styleName = "searchFormPeriod" / >

< mx:Button click = "doDataSearch ()" toolTip = "Search" styleName = "searchFormButton" / > "
< / mx:HBox >
< / mx:Form >

< mx:Spacer height = "10" / >

< mx:ViewStack id = "menuOptions" width = "98%" height = "100%" styleName = "viewstack" >
"< mx:Panel id ="DurationCount"width ="100% "height ="100% "label ="number of term"toolTip =" number of duration "title =" number of term"styleName ="viewstackPanel">"
< mx:DataGrid id = "grid1" width = "100%" height = "100%" styleName = "viewstackDatagrid" / >
< / mx:Panel >

< mx:Canvas width = "100%" height = "100%" label = "number of Message" ToolTip = "Message Count" styleName = "viewstackCanvas" > "
< mx:VBox id = "MessageCount" width = "100%" height = "100%" styleName = "viewstackVbox" >
< mx:HBox width = "98%" styleName = "viewstackHbox" >
< mx:Label text = "Message Count" width = "98%" styleName = "viewstackLabel" / > "
< mx:Spacer width="100%"/ >
< mx:Button click = "changeView ()" toolTip = "edit view" styleName = "viewstackChartButton" / > "
< / mx:HBox >


<! - the DataGrid, or graphic is added here in actionscript code - >

< / mx:VBox >
< / mx:Canvas >

"< mx:Panel id ="AverageCount"width ="100% "height ="100% "label =" average Count"toolTip =" average Count "title =" average Count"styleName ="viewstackPanel">"
< mx:DataGrid id = "grid3" width = "100%" height = "100%" styleName = "viewstackDatagrid" / >
< / mx:Panel >

< / mx:ViewStack >

< xgc:WebPageFooter right of author = "copyright © 2009" / >
< / mx:VBox >
< / mx:Application >

See more modified code:


           
               
           


               
                    height = "20%">           <>
                       
                       
                       
                   

                    Specify the height '80% '.<>


           
                       
           
               
           

           
       

Tags: Flex

Similar Questions

  • FLEX - localhost began to appear in the browser but Network Monitor says otherwise

    Hello

    Today, I ran my FLEX application in FireFox and noticed that he was showing "transfer data to localhost...". "at the bottom of the browser. Originally, it would show my IP server, not localhost.

    I watched the network monitor and check that network traffic is NOT localhost, but my server IP address.

    Here are the screenshots to prove that I am only partially crazy! :

    localhost---problem.png

    ↑ This is the problem...

    localhost---problem-networkmonitor.png

    ^ Network Monitor shows that it hits the correct server IP here...

    This, everyone knows or knows why this is happening?

    I dug into the parameters of the project file and looked for localhost but couldn't find it anywhere. Not sure where that would be defined?


    I'm trying to clean up Firefox, which I think could be my problem, , but was curious to know if anyone has had their start of sudden app FLEX showing localhost calls in the browser status bar?

    Hi Devtron

    I bet that Flash Builder Network Monitor works exactly like charles webdebugger.

    What it does is to set up a proxy on localhost and game to configure the proxy server to your system, so all the traffic on your network goes on the proxy, and then the proxy is the inspection of data network. Then it would make sense that your browser displays localhost because data are extracted through this proxy.

    Best regards

    Martin

  • Streaming mp3 using the Audio tag does not work in the app, while working in the browser

    Hello

    I fight with this problem on the second day and still can not get it to work.

    I'm on Soundcloud mp3 streaming and all works in Wellington and the browser on the device, he refuses to work in the application.

    -Do you have someone at - it had the similar problem?

    -Have you had a chance to make the streaming solution work in app?

    -It could be cause by the fact that Soundcloud uses a 302 redirect to a temporary URL?

    Thanks in advance

    I think that the redirect can be a problem. It works if you choose a url that links directly to a stream for example

    http://AUDIO1.ideastream.org/wcpn64

    Have you tried? I used the audio tag to read feeds with success on OS6 and OS7. On OS6 was a problem of the CBC, but the original CBC played yet.

  • Web app how to hide the browser bar

    Hi all

    How can I force a mobile site to hide the browser bar?

    I added this code

    ___

    < name meta = "apple-mobile-web-app-title" content = "Meditação Light" >

    < name meta = "apple-mobile-web-app-compatible" content = "yes" / >

    < link rel = "apple-touch-icon".

    href = "57x57.png" / >

    ___

    It works for the home screen, but all other pages display the bar. I would like for the web app run as a native application on a full screen. Is this possible? If this is the case, how I to make it happen?

    Thank you

    Heloisa

    Check out this tutorial and see if it helps you to build an incredible fullscreen mobile experience - rock HTML5

  • Why is it high Android app version required by the game store number?

    Hello

    We recently rebuilt a viewer v30 v29 Android app. This can happen to try to download that game Google requires that the APK version is higher than 4000000 - is - anyone know why? We took the advice here Digital Publishing Suite help | With version numbers in Web App Builder DPS -our legacy app version number was actually 4. is there a way that this could be 4 million?


    Thank you


    Toby

    You already have an app in the Google play coming from Woodwing? They did some interesting calculations to come with their version code which lead to a very large number used.

    However, there is really no impact. Just put 4000001 for your first submit and then next time around leave the override box off and App Builder will take care of him then.

    Neil

  • Why don't Firedox continues to ignore my requests not to upgrade my browser?

    I use the Firefox Extension memory to remember each Ttime I connect on Firefox to check Page options to make sure that Firefox has not changed the configuration on my preferences. I configured Firefox beta 15.01 for not having my updated browser up-to-date.

    But then after a few weeks I notice update my browser configuration was "mysteriously" changed.to indicate I want to update when I decidedly don't. What happened several times. So now I check the configuration whenever I log to make sure that I will be not updated.

    But even so, he is not infallible because Firefox can update my browser between sessions, and it is not something I can do to stop it. and as a mater of fact, I think I have what they do

    I have zero expectations that it will never stop. But as I prefer Firefox over any other browser by far, the next time it happens, I will have no choice but to leave Firefox forever

    All 15 Firefox are beta right now. The Stable of Firefox version (now) is Firefox 14.0.1. Go to www.getfirefox.comand download the final version of Firefox it. Uninstall the beta version and then install the version you downloaded.

  • Why don't my reinstallation of Windows XP accepts the key that comes with it?

    I have had trouble with my computer and decided to back up everything on an external drive (fact), reformat the disk (done) and re-install the operating system WIN XP Professional.  But when you try to do so, the system will NOT accept the authentication key of the user supplied with the disc.  Does anyone have an idea what might happen?  Thanks for your attention!

    Looks like you may not have used the same CD that came with the product key.

    It must match edition, architecture and type with Windows XP.

    (Home, professional, Tablet PC, Media Center, etc.)
    (x 86 or x 64)
    (OEM, retail, MSDN)

    Although the latter can be "bypassed".

  • Why my creative cloud Installer app doesn't have the Apps tab?

    I uninstalled the app and reinstalled the app to see if he'll fix it, but it's not. 2015-08-17_1037.png This is what looks like my app. It doesn't even have the App tab at the top for me download or update my programs. Help, please.

    Please check: missing Creative Cloud desktop applications tab

  • Why don't last import in iPhotos now see the when I try to attach them to an email.  They are there in the photos, but not when I try to select via email as an attachment as its not updated

    I imported the images into the pictures and they are clearly there when I go into the photos, but when I go into an email and select last import of files th does not appear also I can not select the photo that I have to join - it's as it is not updated in horizontally or something

    Stop iPhoto and open your iPhoto library package, as shown in this screenshot

    And look for a folder called import or import.  Move it to the desktop (tomake any other changes to the content of the library package) and launch iPhoto.  This should stop the attempt to re-import.

    Check the contents of this folder on the desktop to see if it contains pictures that not imported and you want to keep and import.

  • Why don't I have a web cam on the new compaq presario cq56 115dx laptop

    received at Christmas 2010, can not find web cam, can see friends on Skype, but they can't see me.

    what I have to buy a webcam have a screen at the top of the computer

    According to the specifications of your laptop that can be found here, your laptop does not come with a built-in webcam. If you want to video chat on Skype, you need to buy external webcam for your laptop.

  • Why don't show reports of Financial Reporting in the studio EN?

    Hello
    We had to change the BI server DNS name. We have IR Workspace, EN, WA, installed on the BI server. After the change of name DNS and reconfigure using ConfigTool, we were not able to find our old reports of FR.
    (1) can someone tell me which table our EN reports are stored in our scheme of RDBMS Oracle BI?
    (2) no idea what I need to do to get these reports EN appears in studio EN?
    Thanks in advance

    The resident in the HYPBI schema metadata. You may need to change the jdbc_url entry in HYPBI. V8_JDBC table to correctly point to new DNS (run sql update). Report DAT files reside in the D:\Hyperion\BIPlus\data directory. You may need to restore from the back upward and D:\Hyperion\BIPlus\data and HYPBI metadata objects should be in harmony

  • After having minimized my browser appears upwards. Why? Also, when you view videos big screen, the browser will pop up after reducing to a minimum. Thank you

    I have the update to Firefox version. I use windows 7.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Why resize my pages in preview and preview of the browser (safari) but look how I designed them in design mode?

    Help!  I've been adding images to a page and everything looks good in Design view, but when I saw the page in preview mode or in the browser (safari), the images are either displaced or there is more space between the bottom of the images and menu bar

    I think I fixed it, I had a sticky footer defined.

    Thank you for your quick response!

  • WebWorks App must call the browser with our mobile site URL

    Hello guys,.

    Please help me with this simple question:

    I need a 10 BB app that would invoke the browser with the URL of our mobile site (HTTPs-password - protected).

    So it's a very simple process:
    1. start the application
    2. application displays the mobile Web site

    Thank you very much!

    PS: Optional Question: is it possible to keep the navigation bar of the browser on the bottom of the screen?

    You can do this by simply using a config.xml file, an icon and nothing else

    Something along the lines of...

    
    http://www.w3.org/ns/widgets"
            xmlns:rim="http://www.blackberry.com/ns/widgets"
            version="1.0.0.0" id="com.mysite.wwapp" xml:lang="en">
    
        http://www.mysite.com">You
        MySite
        
        
        My Website
    
    
    

    There is no navigation of the browser at all well and the site would need set the

  • Why don't the apps invented not in my "Apps" section in the creative clouds?

    Why don't the apps invented not in my "Apps" section in the creative clouds?

    Hello

    Please help us to better understand.

    Do you get a spinning wheel under the apps section?

    Please follow-

    Adobe Creative Cloud desktop application does not open or shows a spinning wheel of progress

    Can not see my apps in cloud creative, just a spining wheel

    Is it a mistake to download apps?

    Please follow:

    Using creative cloud | Download error in the applications tab of Creative Cloud Desktop Application

    Hope this helps!

Maybe you are looking for

  • the attachment name is pale (without colour) and cannot be seen until the passage of the mouse

    The name of the file attached to an e-mail received can be seen clearly (it's not colored) until you move the cursor over the name of file, on the bottom bar of the e-mail message.It just happened for me to roll back the theme default "autumn reverie

  • satellite A30 cd/dvd diseapear

    Helloon my satellite A30, the cd dvd device is not longer on my desk, and all my programs said that there is no deviceit quite deseapear, but it still turns when I put a disc inWhat is going on?Thank you for helping me

  • Satellite 2140 CD: monitor Lcd lost colors

    I have a laptop Toshiba Satellite 2140 CDS.The LCD lost chart colors so I tried to swap the monitor with a good but once installed or worked once again, the screen remains empty, but white indicating the backlight works very well.S3 Graphics work fin

  • When I do Ctrl 'P' there is nothing in the queue

    When I try to print, I think that's not queue. The printer says that there is nothing in the queue?

  • eliminate the line duplicated with condition

    SQL query---------------------Select * from)SELECTOPTION_ID,INSTALLATION_DATE,ROW_NUMBER() on rownumber (option_type CSA control)Ofv_device_options_details vdodWHERE vdod. EQUIPMENT_ID = 1604 AND vdod. Type_equipement = 'module' AND vdod. TYPE = "sta