How to dynamically resize a display component to avoid vertical scroll bars?

Hi,
I have a Flex 2 chart embedded within my html page. I have a
hard coded height and width for the object tag. The problem is that
my Flex 2 chart application is created dynamically based on the
meta-data and as such may or may not be bigger in size than the
size that I have set. In such cases, Flex shows the scroll bar.
On creationComplete, I want to be able to detect the true
size of the flex app i.e size that includes both the view area and
the area that is hidden but scrollable. I have tried height, width,
verticalScrollBar.maxHeight etc. but none of them give me the
height and width of the whole app. Is there a way to get that in
ActionScript?
Thank you,
AN

Hi!
Try to read this:
http://blogs.sun.com/winston/entry/button_header_table
I hope it will help You.
Thanks,
Roman.

Similar Messages

  • How to expand text box size automatically (and avoid the scroll-bar).

    When I enter a box for multi-line text, upon converting to .pdf, a scrollbar appears if the text does not fit into the box. I don't want this. I want the text box size to automatically increase.

    http://community.skype.com/t5/Windows-desktop-client/How-can-I-change-the-height-of-the-input-box-in...

  • How to view lines in table control after pressing vertical scroll bar

    Hi Experts, 
    I created table control in MPP, While design my layout I design table control with 12 lines(Fixed),  But I am moving my internal table values to table control. my internal table have more then 12 lines. My problem is I cant view my 13, 14th line in table control.  Could you help me in solve this issue?

    Please make sure that you have used the following code in the PBO
    DESCRIBE TABLE it_tab LINES tab_ctrl-lines.

  • How to dynamically resize JPanel at runtime??

    Hello Sir:
    I met a problem, I need to resize a small JPanel called panel within a main Control JPanel (with null Layout) if I click the mouse then I can Drag and Resize this small JPanel Border to the size I need at runtime, I know I can use panel.setSize() or panel.setPreferredSize() methods at design time,
    But I have no idea how to do it even I search this famous fourm,
    How to dynamically resize JPanel at runtime??
    Can any guru throw some light or good example??
    Thanks

    Why are you using a null layout? Wouldn't having a layout manager help you in this situation?

  • How to get vertical scroll bars for a window?

    hi All,
    i have a window in my smart form ( not main window ) . it displays long text of a PO header. since user can enter huge amount of long text i want to enable vertical scroll bar in smart form window so that it shows all the long text.
    How to enable that for a window in smart form? any pointers would be highly appreciated.
    Thanks,
    Sreekanth.

    Hi
    Only the main window can have a dynamic heigh, all other windows have a static size: so u make sure the long text can be displayed in the window .
    Max

  • How to put vertical Scroll Bar on the LEFT side of a VBox?

    The default is on the RIGHT side. It seems no easy solution on this question.

    Hi Darren,
    Thanks for your reply. I've narrowed the problem down to this strange behavior only happening when the viewport component is a tree-table (a JTable with a JTree for a column renderer). The tree-table works okay in JDK 1.3, but not in JDK 1.4. When I remove the JTree column renderer, the table draws correctly, but without the tree. It looks like the viewport position is being set wrong somewhere.
    When a column is resized, an AdjustmentEvent is created. So that's why resizing the column looked like it had the same effect as the horizontal scroll bar.
    If you're interested, then I will be happy to let you know how I fixed it, if I can.
    The complete code that creates the scroll pane with the vertical scroll bar on the left is below. There's too much code to post the JTree column renderer.
    Thank you,
    Don
    m_leftScrollPane = new JScrollPane(m_sourceTable,
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    m_leftScrollPane.setComponentOrientation
    (ComponentOrientation.RIGHT_TO_LEFT);

  • How to get rid of vertical scroll bar in ABAP webdynpro table

    Hello,
    I have created a dynamic WD table using cl_wd_dynamic_tool=>create_table_from_node and then I restricted the number of lines to 1 by setting the 'Set_Row_Count' and 'Set_Visible_Row_Count' = 1. But still when I run the application I see a vertical scroll bar which looks very awkward for only 1 line. How do I get rid of this vertical scroll bar ?
    Thanks and Regards,
    Sandhya

    Hi,
    Is your table under any transparent container. have you set any scroll mode for this.
    One more thing, have you used SER SCROLLABLE COL COUNT property.Also is this property set firstVisibleScrollableCol.
    Regards,
    Lekha.
    Edited by: Lekha on Oct 28, 2009 11:18 AM

  • On every website, my right vertical scroll bar is missing and all of my Toolbar bookmarks unless I minimize the window, click "view" and "full page." How do i get it back to NORMAL?

    When I hit "full page" the right vertical scroll bar re-appears, but my bookmark toolbars, my bing bar, and pretty much the entire top 2 inches of my screen disappears. When all of these things are showing, the right vertical scroll bar disappears, and the entire webpage shifts to the right, so I can't see most of the right side of the page. How do I fix this?

    Welcome to Safari 6 with:
        .   .  t  .   .  a  .   .  b  .   .  s  .   . 
    That are the size of tractor-trailer trucks!
    There is no known way to get them smaller except when you get a lot they will "shrink-to-fit".

  • Component on page not moving as vertical scroll bar is moved

    All -
    I have a mxml page that is a mx:Application.  This page basically consists of a VBox
    and a number of components included within that VBox.  All but 1 of the components
    within this VBox are built-in flex components.  The one component that is not a built-in
    flex component is the one that is causing me issues.  The issue is happening when I run
    the application, once running the vertical scroll bar appears on the right-hand side of the
    page (as expected because I have quite a few items in my VBox).  The problem is that as
    I drag the vertical scroll bar from the top of the page to the bottom of the page, the custom
    component within my VBox that I built is staying put (it's not moving with respect of the
    movement of the vertical scroll bar).  All of the built-in flex components that are within my
    VBox are moving with respect of the movemnet of the vertical scroll bar as expected.
    I appreciate any information that you can provide that will lead me in the right direction,
    Thank you,
    Wes

    // THIS IS THE CUSTOM COMPONENT

  • How to fix double vertical scroll bar in responsive output

    After implementing the solution provided for the question 'Responsive HTML5 Output: How to auto adjust the screen resolution for all devices?', the function bar in output does not appear and also another vertical scroll bar in the output. I edited the max-width value in the layoutfix.min.css file and fixed the function bar issue. How can I do away with the additional vertical scroll bar?

    I've looked into the issue.
    @Delennish: In your case, the size of the iframe is too large, or you have an extra empty element below the iframe. You can try 2 things:
    1. Best solution but may have side effects: In the main.css, add the following code:
    div.contentholder { overflow: hidden !important;}
    For this option, please check for undesired side effects.
    2. Works, but is ugly: In the main.css, add the following code:
    div.floatholder iframe.wTopic { height: 95% !important;}
    Try playing with the height setting until the 2nd scrollbar disappears.
    @CarolW: The layout you're using is very old. I've made a new responsive layout with TOC only. Please use that one instead: http://www.wvanweelden.eu/sites/default/files/attachments/Theme1_Standard_TOC_Only.zip (I'll update my site with this new version later.)

  • How to Enable to vertical scroll bar in a table control

    Hi,
    I have created a table control with a wizard and later did some modifications on it. Problem I have now is that the vertical scroll bar is disabled on this table control. The end user wants to enter as many rows as possible, however as the scroll bar is disabled, he is not able to add the rows at the end (of the visible table control area).
    How do I enable the vertical scroll bar of the table control?
    Please help.
    Thanks,
    Vishal.

    Hello Vishal,
    In PBO.
    Create a Module and in the module increment the value of tbcl-lines.
    ex:
    Data : L type i.
    IN PBO.
    MODULE vertical_scroll_bar.
    MODULE vertical_scroll_bar.
    DESCRIBE TABLE itab lines L.
    <table control name>-lines = L + 10.
    ENDMODULE.
    Hope this solves your issue.
    Cheers,
    Suvendu

  • Help with a vertical scroll bar issue with a List component

    hi. i have a basic <s:list> that uses an XMLListCollection as it's data provider and a very basic itemrenderer. when a row in the list is clicked a function gets the list.selectedIndex then populates some text fields with more xml data. that all works fine.. the problem i have is that the vertical scroll bar on the list seems to be "clickable" - just like a row in the list. the scroll bar scrolls normally but when it's clicked the selectedIndex becomes -1 which is not helpful b/c the value -1 is passed to the XMLListCollection.
    any ideas? cheers.

    thanks but still problematic...surely the <s:List> component shouldn't return a value when the scrollbar thumb is clicked? i created a very basic list (see below) and made the list dimensions short enough so that there is a vertical scrollbar and found that when the scrollbar thumb is clicked the trace(event.currentTarget.selectedIndex) returns a number. that's annoying b/c i just want a selectedIndex value for a row that is clicked not the scrollbar.
    any ideas to get around? cheers
    <fx:Script>
    <![CDATA[
    protected function list1_clickHandler(event:MouseEvent):void
    trace(event.currentTarget.selectedIndex);
    ]]>
    </fx:Script>
    <s:List x="162" click="list1_clickHandler(event)" y="276" labelField="@label" width="144" height="153">
    <s:dataProvider>
    <s:XMLListCollection>
    <fx:XMLList xmlns="">
    <node label="one"/>
    <node label="two"/>
    <node label="three"/>
    <node label="four"/>
    <node label="five"/>
    <node label="six"/>
    <node label="seven"/>
    <node label="eight"/>
    <node label="nine"/>
    <node label="ten"/>
    <node label="eleven"/>
    </fx:XMLList>
    </s:XMLListCollection>
    </s:dataProvider>
    </s:List>

  • How to make HTMLPANEL have a vertical scroll bar?

    The content that I load into the panel is longer than the panel itself. How do I make the
    panel have a vertical scroll bar to contain all the data within it.

    Add
    overflow: auto;
    or
    overflow: scroll;
    to your style definition of the panel. You can also use
    overflow-y: auto;
    or
    overflow-y: scroll;
    which gives only a vertical scroll bar.
    Beth

  • List Box display to synchroniz​e with Scroll bar.

    I will like to know if anyone here can help to amend or advise on the attached VI in order to allow the List Box display to synchronize with the Scroll bar.
    As the VI is in run mode, i would like to see 9.CD, 10.Troja, 11. Red... and so on to be displayed as it is being executed.
    Thanks.
    Attachments:
    try.vi ‏13 KB

    Hi Gelb,
    Glad to hear you've got it working
    I realised afterwards that my code will not work correctly if the last line is partially hidden, ie the list box does not display an exact number of lines. So I've added a +1 after the array size function to correct this, see attached vi.
    You'll notice that I read the NumRows property of the listbox - I've done this so that if you decide to change the listbox height the code will still work without you having to go in and change anything. In your code you would have to change the constant (currently a 7) before the comparison primative to the new height. Also, in my new vi I've assumed the listbox height isn't going to change during the time it gets populated so I've move the NumRows property out of the for loop and read it only once - saves a bit of time
    Using a for loop with auto indexing rather than a while loop also means that I don't need to index the input array every time or worry about when the loop will stop.
    Hope this all helps
    Dave
    Message Edited by DavidU on 06-26-2008 08:59 AM
    Attachments:
    Scroll Listbox 2.vi ‏15 KB

  • How can I widen the vertical scroll bar width in Firefox and Thunderbird?

    How can I widen the vertical scroll bar width in Firefox and Thunderbird?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

Maybe you are looking for

  • New MacBook Air does't show youtube completely in new tab

    I just bought this MacBook Air yesterday. But I found out that the youtube always does't show the video cover whenever I open a new tab, and the comment session below the video always show loading. May I know what is the problem? What can I do to fix

  • How to send a fax by using laptop pc + N70

    Dear friends, can you give me any advise for this practise: edit a fax file on laptop, following, setup a connection between pc and my N70 with bluetooth device, then send the fax out via my N70. I have heard some people did this succesfully, but I f

  • Photoshop CS5 slow Save for Web (Win 7, 64 bit)

    Hi. I have problem with save for web in PS CS5 (12.0.1). It is extremely slow. For example selecting anything from menus takes couple of seconds. I deleted PS preferences files but that didn't help. Any suggestions how to fix this? Thanks. My system

  • IDOCS : Use standard FM replacing the custom FM

    Hi friends,                   As a part of redesigning a material interface, I have been assigned a job of replacing the current inbound custom functional module by the standard inbound functional module 'IDOC_INPUT_MATMAS01'. So, the code which was

  • Sd delivery date and ship to party

    HI ALL..................     PLS TELL ME IN WHICH TABLE I CAN GET "DELIVERY DATE"  AND "SHIP TO PARTY"  AND BUDAT  FIELDS...... Moderator Message: Basic Question. All Caps => Thread Locked Edited by: kishan P on Nov 25, 2010 1:47 PM