HZGN.COM
welcome to my space
X
Welcome to:hzgn.com
Search:  
NAVIGATION - HOME

[SOLVED]ColumnTree: ensureVisible barfs

Published by: admin 2009-01-07

  • Has anyone got this working?

    I get a variety of errors, but this one is the most troubling: (from Firebug)

    Ext.fly(child, "_scrollChildIntoView") has no properties
    scrollChildIntoView(undefined, undefined)ext-all-debug.js (line 2227)
    ensureVisible()ext-all-debug.js (line 22856)
    apply()ext-base.js (line 9)
    f()ext-all-debug.js (line 22096)
    expand(false, false, function())ext-all-debug.js (line 22783)
    expand(false, false, function())ext-all-debug.js (line 23002)
    loadComplete(false, false, function())ext-all-debug.js (line 23015)
    apply()ext-base.js (line 9)
    load([Node Joe Blow - HR] loaded=true loading=false childrenRendered=true, function())ext-all-debug.js (line 23639)
    expand(false, false, function())ext-all-debug.js (line 22998)
    f()ext-all-debug.js (line 22108)
    expand(false, false, function())ext-all-debug.js (line 22788)
    expand(false, false, function())ext-all-debug.js (line 23002)
    expandPath("/ynode-73/Joe Blow - HR", "id", function())ext-all-debug.js (line 22110)
    ensureVisible(undefined)ext-all-debug.js (line 22858)
    testVis(Object myTree=[Tree ext-comp-1006])myApp.js (line 572)
    buildReports(testVis(tree))myApp.js (line 433)
    success(Object tId=0 status=200 statusText=OK, Object url=/tools/myApp params=Object)myApp.js (line 199)
    apply(function(), undefined, [Object tId=0 status=200 statusText=OK, Object url=/tools/myApp params=Object], undefined)ext-base.js (line 9)
    handleResponse(Object tId=0 status=200 statusText=OK)ext-all-debug.js (line 5206)
    getViewWidth(Object conn=XMLHttpRequest tId=0, Object scope=Object argument=Object timeout=30000, undefined)ext-base.js (line 10)
    getViewWidth()ext-base.js (line 10)
    [Break on this error] Ext.fly(child, '_scrollChildIntoView').scrollIntoView(this, hscroll);

    this was engendered by:

    var node = tree.getNodeById( 'Joe Blow - HR' );
    node.ensureVisible();


    I've tried working around it by ensuringVisible/expanding all the parents from root down,
    before the node itself, but the root+1 level barfs the same as a deeply nested node
    (this is the trace above, where ynode-73 is the root id).

    Any help/hint appreciated,
    --dan


  • There was one scroll issue with tree a way ago and it was browser dependent. Try to search for it but I guess it has been fixed.

    Anyway, post the full code so I can test it and if it's a bug in Ext to file it in the official bug list.


  • Do you call ensureVisible after the tree is rendered?


  • Do you call ensureVisible after the tree is rendered?Hey Saki,

    Yes, I do, as a callback after rendering.
    I've even added a 1 second defer to see if it was latency.. but it wasn't.

    The tree in question is 3 levels. The expansions work (visibly, when I manually
    scroll after the error), but the scroll doesn't.

    The ability to expand/scroll to a certain node is kinda key to the whole
    thing I'm doing. If this error/bug is too cryptic, I'd be very interested in any
    workarounds you might suggest... unlike most stuff I usually code around,
    this I can't let go ... ;)

    Many thanks for your help, and looking forward to my V8 moment :D,
    --dan


  • There was one scroll issue with tree a way ago and it was browser dependent. Try to search for it but I guess it has been fixed.
    Anyway, post the full code so I can test it and if it's a bug in Ext to file it in the official bug list.Hey Saki,

    I'm aware of the key-nav issue with column trees, if that's what you're referring to.
    That isn't an issue here.

    I cannot post the full code, but here's a simplified example that produces
    the same error. You'll only have to edit the paths to Ext ...

    The behavior seen is this: tree is rendered into container that is only
    tall enough to see the un-expanded first-level children of a non-displayed root.

    After 5 seconds, the ensureVisible is called and the path to the node is
    expanded, but the scroll to that node is where the aforementioned error occurs.

    If there's a flaw in how I'm building the nodes (omitting a required field that
    supports scrollTo) or something else amiss, I'd be grateful for the heads-up.

    Please let me know if I can provide anything else ...
    Your help is appreciated,
    --dan






















  • Red Hat's Rough Recovery From CFO Exit
    Windows Live Finds a New, Pre-installed Home

    You are looking at:hzgn.com's [SOLVED]ColumnTree: ensureVisible barfs, click hzgn.com to home
  • to all the jonas brother fans
  • what is there to do in iowa what is it like
  • whos been to a jonas brothers concert
  • president
  • how can we start a suicide program
  • jobs in ngos charities
  • applying to four jobs at same place how bad would it be
  • what 039 s the oldest age you would like to be alive
  • jonas brothers hater or lover
  • do backstage passes at the gibson amphetheater help me get to meet the performer
  • backstage passes
  • how can i get backstage passes or vip tickets to c the jonas brothers on aug 18
  • how do you get backstage passes
  • help me please with an answer
  •  
  • guys would u like someone like her
  • what is it like to go backstage at a jonas brothers concert
  • eyebrows make wonders
  • how could i get backstage passes to a jb concert never been to an indoor one before
  • does the vip tickets for the jonas brothers include a backstage pass
  • the people at my job are so lazy the coworkers are jerks
  • is there anywhere i can get backstage passes besides from the radio
  • does any jonas brother fan know how to get backstage passes
  • why do some people allow themselves to be convinced that they are oppressed
  • jonas brothers concert and back stage passes
  • is there an easier way to get in touch with ticketmaster i really want to get phish tickets
  • whats the easiest way to get backstage passes
  • who 039 s concert would be much better miley cyrus or the jonas brothers
  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED]ColumnTree: ensureVisible barfs , Please add it free.
    About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008hzgn.com All Rights Reserved