Horizontal scroll for Tree component scrolls too far right

I've enabled the horizontal scroll bar for the Tree component.
But the scroll bar allows the user to scroll very far to the right into blank space.
The maximum width of my components measures 124px, as calculated by measureWidthOfItems(0,0), and I've verified this by measuring pixels of a screen shot.
I have tried adding an event to set the Tree.maxHorizontalScrollPosition, and I traced the value that I'm setting it to, and I also traced the value that it actually assumed after I set it. Both are 124px.
So I can't understand the behavior. I can scroll something more like ~400px to the right with lots of blank space.
Any ideas why?
Thanks,
David

Hmm, I'm not sure why this works, but it works, so for completeness here's what I did (in case anyone else runs across this same thread):
var measWidth:Number = myTree.measureWidthOfItems(0,0);
filesTree.maxHorizontalScrollPosition = measWidth - myTree.width;
I call the above code whenever the window is resized (in my app there are 2 places that can cause a resize of the window, I manually added calls to a function with the above code). There is also an example out there that resizes any time the window is resized, but if you do this then you really can't have liveDragging=true in a DividedBox (which I have) because the cost of resizing is very high and overtaxes the cpu when called many times consecutively. I just call it when the dragging is finished (that way I have live dragging enabled, but it only updates the scroll bars when the user stops dragging, which is visually acceptable).

Similar Messages

  • Scroller for Tree table

    Hi all,
    I want to put scroller for the Tree table . Here I put Tree table in the PGL(With Scroll property) . When I expand the node in the tree table ,scroller is nor appearing . Please give me the solution .
    Thanks in Advance .

    Hi,
    You can set the layout of the PGL to scroll, and put it inside a panel Stretch layout.
    Something like
      <af:panelStretchLayout id="psl1">
              <f:facet name="bottom"/>
              <f:facet name="center">
    <af:panelGroupLayout id="pgl1" layout="scroll" >
              <af:treeTable ......
              </af:treeTable>
            </af:panelGroupLayout>
    </f:facet>
              <f:facet name="start"/>
              <f:facet name="end"/>
              <f:facet name="top"/>
            </af:panelStretchLayout>-Arun

  • Setting up scrolling for a component which has g2d features...

    Hi, everyone, Im working on adding scrolling capablitlity to a component, as it currently exceeds the room I have given it. The problem is....
    1) My scrollbar is always hidden under my g2d images... If I click on top of where the scroll bar should be, like crazy it appears piece by piece.
    2) The scrollbar doesn't seem to be scrolling. BTW its on a regular panel (getContentPane()), is this a problem??
    Well....here's the relevant code (the code for the component)
    static class MyComponent extends JComponent {
    JScrollBar scroll;
    //~~~~~~~~~~~~~~Component Stuff~~~~~~~~~~~~~~~
              MyComponent() {
                        setBackground(Color.pink);
                        setBounds(0,0,500,500);
                        setBorder(BorderFactory.createLineBorder(Color.pink,10));
                        scroll = new JScrollBar(JScrollBar.VERTICAL,0,20,0,100);
                        scroll.setBounds(484,0,16,500);
                        scroll.setVisible(true);
                        add(scroll);
                        System.out.println(scroll.isEnabled() + "" + scroll.isVisible() + scroll.getBounds());
                        setVisible(true);
    Then in the main() function, I add it to the panel like so...
    MyComponent mc = new MyComponent();
    joe.getContentPane().add(mc);
    Thanks a lot,
    Mark

    Ok, I tried making the panel....but this has led to some strange(er) problems...
    Here's some info on my panels
    JPanel something....is the panel holding buttons, and under a flowlayout i think
    ContentPane, i dont know what it holds...
    JScrollPane pane...this is hidden from view, unless I set the something JPanel to be hidden.
    Why cant i just see them all at the same time? I made sure the JPanel something had opque set to false, and now i can see the contentPane....but where are my g2d objects (located on "something")
    thanks...

  • Code for Tree component(tomahawk )

    I am new to JSF,I want a tree component in my page and i want to construct the tree by retriving data from database.I searched most of materials but could'nt find any good one.

    How would it match the trees? What have you done so far?
    /Kaj

  • 2 Line Text for Tree Component

    Hi
    I am trying to use a tree component for a Course navigation ,
    and I have a Node names Getting clipped and I wanted to have
    mulitple lines in the tree node, I would appreciate if anyone could
    help me in how the tree component can be extended to accomodate
    this requirement.
    Thanks
    Sembian

    Hi Begum,
    There are few default attributes you need to fill in your data structure,
    PARENT_KEY - Parent (in your ex : header1, header2)
    ROW_KEY -  Children (col1, col2, col3, col4...)
    EXPANDED
    IS_LEAF -
    TEXT
    CHILDREN_LOADED
    IMAGE_SRC
    Include these fields with same name in your structure(structure of the table filling CT_DATA in GET_DATA method)  and fill the relevant data, output will be displayed.
    Cheers,
    Vemula.

  • Save last selected and state for Tree Component?

    I have a Tree component that refreshes its data everytime I
    open the Tab containing it (doing a SQL call to return an index of
    models). The problem is that everytime the dataProvider changes (a
    new one overwrites the old one) with databinding, even if the data
    is exactly the same, it loses its old state and selected node. Is
    there any way to save this state/selected node when the
    dataProvider updates?

    good article on all aspects of trees including your issue.
    http://www.adobe.com/devnet/flex/quickstart/working_with_tree/

  • Garbage Collection Issue for Tree Component

    Dear:
    When I created a new Tree instance dynamically by following code, and clicked any tree node randomly and then I removed it via another button, but I found this instance couldn’t be removed by GC, if I just created this tree without mouse action, it can be removed by GC.
    Tree Component:
    -- TreeView
    <mx:canvas>
    <mx:Tree dataProvider="{data}"  />   // data is a XML staments
    </mx:canvas>
    Create Tree:
               public function createView(event:Event):void{
                  var view:TreeView = new TreeView ();
                  view.name="myTree";
                  addChild(view);
                  view=null;
    Remove Tree:
               public function deleteView(event:Event):void{
                  var view:TreeView= TreeView( _con.getChildByName("myTree"));
                  removeChild(view);
    Could someone give me some suggestion?
    Thanks a lot

    Hi ajmcfarlane,
    This is my first post here. I'm fairly new to AS3 still and
    have been getting my education from a number of places. The best
    education i have found is from the book located at
    http://www.learningactionscript3.com/
    Rich Shupe address this problem of removing the child from
    memory. I Downloaded your file and found 2 problems and resolved
    one of them. By now you might have already solved this anyway.
    To remove the child from the Display List use -->
    removeChild(myChildObject);
    To remove the object from memory use --> myChildObject =
    null;
    You did these two steps but in the incorrect order, just by
    moving the 'myChildObject = null' under the removeChild code makes
    it work.
    I found running a few trace statements after fixing the first
    problem, i found the second problem. The error of trying to remove
    a child when it is no longer there.
    You just need to rework the design so that the order of
    events fires as you want. Below is the traces i used and the output
    that is received.
    function Click1(e:MouseEvent){
    trace("four ", loadedcontent);
    modLoader.unload();
    modLoader = null;
    function unloadCompleteHandler(event:Event):void{
    trace("one ", loadedcontent);
    removeChild(loadedcontent);
    trace("two ", loadedcontent);
    loadedcontent = null;
    trace("three ", loadedcontent);
    output
    Loaded mem: 20668 KB
    four [object MainTimeline]
    one [object MainTimeline]
    two [object MainTimeline]
    three null
    unLoaded mem: 23352 KB
    So you can see the click event is firing of the unload first,
    when i think you want that last.
    I hope this has been of some help :)

  • Data Binding for Tree Component

    Hi ,
    I have to make a tree structure and bind it to a column in a table,
    which when expanded should list the rows of the table for the selected column as individual sub nodes of the tree.
    So far I am not able to get that done.
    Any suggestions how to do it?

    If find what I need among ADF Faces Core component, ... the ADF TreeTable (http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html).
    Unfortunetly It seems quite dificult to integrate ADF or any other 3rd part component with JSC2.

  • IOS7.0.3 Reduce Motion fixes the problem for some, but goes too far.

    In the past, reduce motion would disable the parallax effect, which is basically when the wallpaper shifts back and forth as you tilt the screen. This parallax effect was rather pointless to have, but it was pretty big on draining battery (I noticed around 10-20% longer battery life after turning Reduce Motion on).
    Now, reduce motion not only disables the parallax effect, but all the zooming motions as you open apps or folders. The problem with this is that some people, such as myself, really enjoy those zooming motions. However, the parallax effect (wallpaper shifting) was pretty pointless and not too noticeable, so turning that off was fine.
    I would like to have the option to turn specific things off. For example, an on-or-off button for the parallax effect. A separate on-or-off button for zooming motions when you open apps and folders. That way, I can still have the iOS motion I love, and save that much battery power at the same time. I don't really like the smooth overlay transition, it's not as exciting and it feels too much like Droid OS.

    Sorry but no point in telling us, Apple is not here this is just a user to user forum for technical support. If you wish to see something change in the OS then you can provide Apple with feedback here:
    http://www.apple.com/feedback/

  • Stereo audio too far right on built in speakers?

    My stereo audio on the built in speakers is way off. Anyone else have this audio issue with their Macbook Pro 2.5 GHz i5, 4GB? The audio is pushed towards the right side way more. I've checked the system settings and the slider is right in the middle, but to get it so it sounds remotely balanced, I have to push it to about 25% from the left. So I checked this with my headphones and to my surprise, the headphones are properly balanced with the system settings sound in the center position.
    So that lead me to try this... using the built ins I slid the balance all the way over to the RIGHT side... left speaker goes silent. But when I slid the slider all the way to the LEFT, sound is still coming out the right speaker. So that is a bit of an inconvenience. Any insight?

    There's a "center channel" speaker for bass that's located towards the right side. That's probably where you're hearing the sound when you have the balance control set all the way to the left.

  • UIX Tree Component

    I have an issue with using tree component for our application. We need to provide expand/collapse facility for tree component (using default (+) and (-) icons). Does ADF_UIX support s for this situation. Please provide me any guideline....

    I have an issue with using tree component for our application. We need to provide expand/collapse facility for tree component (using default (+) and (-) icons). Does ADF_UIX support s for this situation. Please provide me any guideline....

  • Issue with af:tree component

    Hi All,
    I am using JDev 11.1.1.6
    I am creating a tree component with collection model.I want to provide different action to each node,so I have defined an action attribute in the bean
    which I set in the constructor as shown below
    TestTree node1 = new TestTree("node1", "#{TreeBean.action1}");
    Is this the correct approach..This gives me "method not found " error when I click on the node.
    Below is the code for tree component :
    <af:tree value="#{TreeBean.model}" id="t1" var="node"
    styleClass="AFStretchWidth" inlineStyle="height:600.0px;">
    <f:facet name="nodeStamp">
    <af:commandLink text="#{node.label}" id="cl1" immediate="true"
    actionListener="#{node.action}"/>
    </f:facet>
    <f:facet name="pathStamp"/>
    </af:tree>

    Hi Vinay,
    UseCase :
    I want a tree showing navigation links . these navigation links will be used to open a new page in panelTabbed Layout.

  • Creating a 1 page scrolling site - problems with the final section scrolling too far

    I have created a 1 page scrolling site that works fine apart from the final section, which scrolls too far. My site is made up of a pinned headr, a pinned footer, and 4 sections (defined by rectangles - each one 1011 pixels high). I have used scroll effects to bring the items in and out.
    The site can be viewed here: Home
    The problem is with the contact us section, where you seem to be able to scroll further than the bottom section.
    These are my document set up settings:
    so my height is set to 4042 (though I have tried it with 4044 - 4x1011 - it makes no difference. When I click on the link to the contact section it looks fine, but I then seem to be able to scroll further down, and this seems dependant on the monitor / browser size. The problem is more pronounced with a smaller monitor / browser size in height.
    I have tried everything I can think of to make it not scroll beyond what the anchor takes it to when I click on the link, but whatever I do the problem seems to persist.
    I would welcome any suggestions on this, and also any general feedback on the site. But help with the problem first please.
    Many Thanks in advance - I would be happy to post the muse file but cannot seem to find a way to do this.
    Ian

    Thanks for the help. Is there a way that I can upload the file for someone to look at - I have tried your suggestion but cannot find any empty text boxes or anything at the bottom. I have gone top right and tried the upload file section but it tells me that I am not allowed the create the content.
    Actually i'll put it in dropbox and share it that way.
    Dropbox - YESS2.muse
    Hopefully someone with more knowledge than me can see what I have done wrong - it is my first time doing a 1 page scrolling site so it might be a school boy error
    Cheers
    Ian

  • CFLAYOUT (tab) - Horizontal Scrolling For Large Number of Tabs?

    Greetings,
    I have a cflayout inside of a cfwindow. It is a tab layout.
    The number of tabs depends upon database content, so the potential
    number of tabs could be unlimited -- although there usually won't
    be a huge number of tabs. The problem is that when enough tabs are
    created dynamically, the tabs on the far right are not
    visible/accessible.
    I was wondering if it is possible to trigger horizontal
    scrolling (such as overflow in CSS) to allow the tabs to be
    accessible. I would like to avoid using pagination or elaborate
    math to fix a div. Seems like there should be a simpler solution.
    Thanks in advance for any help.

    I've had no problem restoring 20-40 tabs on a window and a few on another window.
    Would suggest however that you set '''browser.sessionstore.max_concurrent_tabs''' to 0 in about:config
    * reference: https://philikon.wordpress.com/2010/11/10/firefox-4-0b7-updates/
    '''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config (entries)] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config (How to change)] -- Specialized list of only [http://dmcritchie.mvps.org/firefox/tabs_config.htm Tabs configuration] variables.
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • Since the latest version of itunes, my playlists are "too large" to fit on the computer screen.  I can no longer scroll down because the far right side of the screen is too far over.  How can I minimize the screen or be able to scroll down my list?  Thx!

    Since the latest version of itunes, my playlists are too large to fit on the screen. The left side, with all my playlists is still there, but  I can no longer scroll down the chosen playlist as the far right is no longer accessible.  Any suggestions on how to minimize the list?  Thanks.

    I have the same problem on the latest iTunes software and Windows 7. My window is maximzed and I do not see any tab for photos. Seems related to a recent update (IOS7?) as this was there - at least before the very big change to the interface.

Maybe you are looking for

  • Error 14 cant update the ipod touch

    th eipod touch is new, couldnt update to 4.2, so i try to restore the upod, but i get error 14 everytime i try to restore. My ipod is in DFU mode this is the log, i would like someone can explain me how to solve this problem this is the log: 2011-01-

  • Itunes and Organizing Media/music

    Hi, i want my itunes media/music to be in c:\users\<myuser>\music but everytime i add music to my libaray it kepts putting it in c:\users\<myuser>\music\music why is it creating that extra music folder? my itunes media folder is set to c:\users\<myus

  • Possible to change a text pane in card template to photo pane?

    I am working on a holiday card, but would like to use an additional photo where there is currently a text box/pane.  Is there any way to change this text pane to another photo?  Simple drag and drop does not seem to work. Thanks, Boris

  • ISE Guest Self-Provisioning Portal

    Hi, I  get the Guest portal page and my credentails authenticate correctly and  the device is authenticated using MAB. Then I redirect to Self-Provisioning portal and get this message This device has not been registered You need to manually configure

  • Starting OracleService SID does not open database (8.1.7)

    Moved our 8.1.7 db from server A to server B yesterday. On server B, when the service OracleService<SID> starts, it does not open the database. When I connect through svrmgrl and startup with the same pfile the database opens. I have deleted the serv