Problem getting vertical scroll bar in tree

Hi,
I am adding nodes to a tree control dynamically. But somehow,
a vertical scroll bar doesn't appear during the process. I guess,
somehow, the tree is not able to detect the change in the height,
hence, is not giving the vertical scroll bar. However, after a node
has been populated with the sub-nodes, when I close that node and
re-open it, then the scroll bar appears. I really need to fix it as
soon as possible. Plz help!
Thanks in advance,
Cheree

Seems like Flex 4 is working fine:
This is the updated code working on Flex 4.6 using XMLCollection:
<?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" minWidth="955" minHeight="600" applicationComplete="application1_applicationCompleteHandler(event)">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;
            import mx.collections.XMLListCollection;
            import mx.controls.Tree;
            import mx.events.FlexEvent;
            import mx.events.TreeEvent;
            [Bindable]
            public var treeData: XMLListCollection=new XMLListCollection();
            private var hasRun: Boolean = false;
            //finalSrcList is the ArrayCollection that has value objects returned from data base by a remote object.
            public function populateTree(event:TreeEvent): void{
                if (hasRun == false){
                    hasRun = true;
                    var parentNode:XML=event.item as XML;
                    var temp:XML;
                    var i: int;
                    var finalSrcList: ArrayCollection = new ArrayCollection();
                    // Prepare source list
                    for (i=0; i<10; i++){
                        var item = new Object();
                        item.attribute1 = "attribute " + i.toString();
                        item.attribute2 = i.toString();
                        finalSrcList.addItem(item);
                    for(i=0;i<finalSrcList.length;i++){
                        temp= <node label={finalSrcList[i].attribute1} id={finalSrcList[i].attribute2} isBranch="true"/>;
                        event.currentTarget.dataDescriptor.addChildAt(parentNode,temp,0);
            protected function application1_applicationCompleteHandler(event:FlexEvent):void
                var rootItem: XML;
                rootItem = <root label="root" id="1000">
                    <node label="level1" id="2000" isBranch="true"/>
                    </root>;                                   
                treeData.addItem(rootItem);
        ]]>
    </fx:Script>
    <mx:Panel width="600" height="250" paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"
              verticalAlign="middle" horizontalAlign="center">
        <s:Label>
This is using XMLCollection
        </s:Label>
        <mx:Tree id="funcTree" height="100%" width="100%" dataProvider="{treeData}" labelField="@label" showRoot="false"
                 itemOpen="populateTree(event)" />       
    </mx:Panel>                  
</s:Application>

Similar Messages

  • 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

  • When I open Firefox (after upgrade) it does not show right side vertical scroller bar. I have to take the mouse and physically expand the browser to get the scroller bar to show. (never had this problem in previoius versions of firefox)

    Firefox 4.0 on Mac OS 10.6.7 When I open Firefox it does not show the right vertical scroller. I have to take my mouse to the lower right corner and drag it open slightly and the scoller appears It will stay active through other tabs now until I close or shut down firefox. Once I reopen the same thing again no vertical scroller bar.

    Yes AT&T is my ISP. I use DSL. Currently I am not at my home address. I am currently on a cable modem on COX.com.
    I am also receiving a warning message "WARNING: Parental control appears compromised!".

  • 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".

  • 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

  • Flex Tree Vertical Scroll Bar Issue

    When i click on the + image of flex tree than first time the vertical scroll bar is not coming but when when i minimize it and again click on + than it appears can any one tell me what is the issue??

    Hi Rob,
    I have tried changing styles of those div's in  which I have my dropdown's are there but it didnt work.
    Below is the code for reference:
    <div class="k-animation-container km-popup" style="width: 250px; height: 206px; margin- padding- padding-right: 10px; padding-bottom: 15px; display: none; "><div class="k-list-container k-popup k-group
    k-reset" id="MaintenanceType-list" data-role="popup" style="height: 200px; display: none; font-family: 'Segoe UI', Verdana, Tahoma, Arial; font-size: 11px; font-style: normal; font-weight: normal; line-height: normal; width: 244px; -webkit-transform: translateY(-206px);"><ul
    unselectable="on" class="k-list k-reset" tabindex="-1" role="listbox" aria-hidden="true" id="MaintenanceType_listbox" aria-live="off" style=""><li tabindex="-1" role="option" unselectable="on" class="k-item"></li><li tabindex="-1" role="option"
    unselectable="on" class="k-item">AUX - Accessories belonging to EA group</li><li tabindex="-1" role="option" unselectable="on" class="k-item">ARL - Artificial Lift</li>
    Regards,
    Jyothi

  • In the viewer going to vertical scrolling bar I get a jump to original position...

    Scenario:
    In the viewer I'm working with the mouse vertical scrolling for searching some scenes, then I go to vertical the scrolling bar of the window to scroll in bigger steps... well, the viewer jumps to the previous position.. so I have to start my searching again.... and every time I go the vertical scrolling bar I get this jump to the original position... Very annoying....

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    <br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Vertical scroll bar in a tree node

    Hi Friends,
    I am trying to create a tree in Apex 4.0. I need a vertical scroll bar in my tree nodes if the no: of values is greater than 8. For example i am having a tree with customers and sites. When i press the customers it will list the sites under that customer. I need a vertical scroll bar to be displayed for sites if the no: of sites is greater than 8, so that i can limit the size of the tree. Is there any ways to achieve this in Apex 4.0. Any input for this will be appreciated.
    Thanks,
    Nav

    Hi,
    My test page was upgraded to version 4 along with the rest of the OTN workspaces. I still have access to the tree template but can not guarantee how long that will last as I have no idea behind the reasoning for removing access to new tree's templates. You can access existing old trees by changing the app:page in the URL to 4000:28 - but, note, that new Apex 4 trees are not included on this page as they are generated by widgets not by templates.
    For my old tree, to add the scrolling around the entire tree, I edited the tree's template - by clicking on the Tree link in the region - and added the following at the top of the "Before Tree" setting:
    &lt;div style="height:200px; width:300px; overflow-y:auto;"&gt;and add the following to the bottom of the "After Tree" setting:
    &lt;/div&gt;I have not, as yet, been able to find a way of adding scrollbars within a list when there are more than x number of entries.
    Andy

  • RoboHelp 8: Vertical scroll bar problem

    I just installed RoboHelp 8. When I view a topic page that is longer than the window, sometimes the vertical scroll bars appear and sometimes they don't. If I click the <> HTML tab and then click the Design tab again, the scroll bar appears. The scroll bar also appears if I click the "Save" or "Save All" button. I also don't see a Service Pack for RoboHelp 8. Is that true?
    I'm attaching 2 screen shots (both of the same topic) - one when I first go in to a topic and the scroll bar does not appears and one when I go to the HTML tab or Save and then scroll bar appears.

    Hi there
    No, there is no service release for version 8 as yet.
    Could it be simply that focus is inside another pod when you fail to see the scroll bar? Perhaps you have clicked to select the Single Source Layouts pod and you see the scroll bar goes away?
    Just guessing here... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Can't get rid of vertical scroll bar for full page iviews

    Hello all,
    We 've got a number of areas of our portal where we are using iViews with a full page (e.g. web dynpro apps, collaboration directory).  However with all of these iViews, a vertical scroll bar appears on the right hand side. This bar has hardly any "play" in it (it doesn't move very far), and it doesn't reveal anything extra.
    The funny thing is, it only happens when our desktop (theme and framework) is applied.  Does anyone have any idea what might affect this?
    The iView tray height is set to full_page.  In some cases it sits within a page, others it is added directly to the workset.
    Using EP6SP14
    Thanks,
    Chris

    Hi Christopher,
    whenever a page is displayed in portal, a javascript resizes your inner page iView dynamically. The value used depends on the resolution of your browser (height) minus some pixel reserverd for your mast head, TLN and other page header iViews.
    If you use a theme or masthead iView that is higher than an original one, the javascript calculates an iView height that is too high. Maybe you should try decreasing the height of your portal header.
    At least, that's what I think. Maybe I'm wrong.
    HTH,
    Carsten

  • Text editing window expands instead of creating vertical scroll bar

    In the last few days, I have noticed that when I try to edit or post to Wordpress.com the vertical scroll bar no longer appears on the text editing box. Instead the box just gets progressively larger which makes it very difficult to get to other items on the WordPress editing screen, such as tags and categories. This problem seems to have arisen during the v31.0 auto-upgrade. Is anybody else having this issue and what steps can I take to solve it? (FYI, I tried modifying the setting described in another response about a similar issue using the about:config screen, with no success.)

    I don't know whether your dashboard has the "Visual" and "Text" buttons, but I believe the Visual uses CKEditor or another WYSIWYG editor and the Text editor might be a simpler design. Are both affected?
    I searched around to see whether I could find Wordpress.com support threads or other stories about it and I can't. So I'll fall back on some general suggestions:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove WordPress.com cookies without affecting other sites.
    Then try reloading the page. Does that help?
    To rule out extensions as a possible culprit, could you try the site in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions, some advanced features, and some custom settings. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * (menu bar) Help menu > Restart with Add-ons Disabled
    Note: Flash and other plugins still run
    After Firefox closes, a small dialog should appear: click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • TileList does not recognize the size of vertical Scroll Bar

    Hi,
          I have a tileList with a custom vertical scroll bar that I made, the problem is that when the tilelist gets filled, it does not recognize that the vertical scroll bar width is not the default 16 pixels (I think the default value it's 16, but I'm not really sure) but 5 or 6 pixels, so the first time it gets filled it shows 3 columns of items (no problems with the rows). The columnWidth is set to 185, if I lower it to 180, it shows the 4 columns that I want it to show (instead of 3). I know that there is enough space because when I scroll down, and then scroll up, the fourth column appears. That's why I think that the TileList is not recognizing that the width of the vertical scroll Bar is less than the default width.
    Does anybody know how to make it recognize the new width? And how is  it that it has to take a scroll down to get it to recognize it.
    Thank you for your help.
    Sebasti'an Toro O.

    Yeah, you can try signing up for DropBox - it's a free service that allows you to sync any files between your iPhone and your computer.  More info here:  http://www.dropbox.com/about

  • Vertical scroll bar disappears when I minimize the screen

    I have Firefox 10.0.2. I do have a vertical scroll bar with both the up and down button; however, they all disappear when I minimize the screen. When I am in Ancestry, for example, when I minimize I get a horizontal scroll bar but there is no vertical scroll bar. I have no clue what to do. I minimize screens a lot when I am in Ancestry and it gets very frustrating. Can anyone help?

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode].
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > '''Use hardware acceleration when available'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]. All these settings/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme or hardware acceleration is causing issues.
    If the problem persists, you can also try disabling the '''Plugins''' in Tools > Add-ons temporarily to check.

  • Vertical Scroll Bar on the device display

    Hello,
    I had the problem with both horizontal and vertical scroll bars. Managed to get rid of the horizontal scroll bas using the parameters ~itsmobileelemfactor and ~itsmobileelemunits but the vertical scroll bar is still there. As our transactions are developed internally, I managed to sqeeze the screen elements but still the vertical scroll bars are there.
    I am testing with Intermec CK3 device with Intermec Browser.
    I was going thru this forum and someone has suggested to modify the CSS.
    Can someone help me which html parameters are required and under which css class e.g. font size, line-height etc to reduce the overall screen size? I am not good in HTML.
    Thanks in advance.
    Regards
    Narottam

    Hi Oisin,
    Parameters in SE80:
    ~GENERATEDYNPRO = 1
    ~ITSMOBILE = 1
    ~SOURCES = ZZITS_IB_LM00,ITSMOBILE01,ITSMOBILE
    ~THEME = 99
    ~TRANSACTION = LM01
    Parameters in SICF:
    ~ITSMOBILE = 1
    ~TRANSACTION = LM01
    ~THEME = 99
    ~SOURCES = ZZITS_IB_LM00, ITSMOBILE01,ITSMOBILE
    ~POPUPS = 1
    ~WEBTRANSACTIONTYPE = EWT
    ~ITSMOBILEDEVICEINCLUDE = ZZ_IBROWSE
    ~ITSMOBILEELEMFACTOR = 8
    ~ITSMOBILEELEMUNIT = px
    I know you helped me earlier and provided two OSS notes. Those nores are installed.
    Again, please let me know what I am missing to get rid of the vertical scroll bar. Strictly we have followed 16X20 screen size which is SAP RF standard.
    Regards
    Narottam

  • 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>

Maybe you are looking for