1. #1
    Sencha User
    Join Date
    Apr 2007
    Location
    Ettlingen, Germany
    Posts
    65
    Vote Rating
    0
    Mark is on a distinguished road

      0  

    Default Unanswered: no scroll() in Core3.x ?

    Unanswered: no scroll() in Core3.x ?


    I'm confused.
    I've read in Ext Core 3.0 Api -Documentation:
    scrollTo( String side, Number value ) : ElementScrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it ...
    Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking,use scroll().
    I'm looking for this function in the code with no success. Is it true that there is no scroll() for the Ext.Element available like in Extjs3.xx?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Answers
    1
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Correct. It's defined in Element.scroll-more.js, which is not included in ext-core.js.

  3. #3
    Sencha User
    Join Date
    Apr 2007
    Location
    Ettlingen, Germany
    Posts
    65
    Vote Rating
    0
    Mark is on a distinguished road

      0  

    Default


    HI Condor,
    thanks for replying.
    I there a way to get those functionallity to Core 3. I tried :
    PHP Code:
    Ext.Element.addMethods({
     
    scroll : function(directiondistanceanimate){
             if(!
    this.isScrollable()){
                 return;
             }
             var 
    el this.dom,
                
    el.scrollLeftel.scrollTop,
                
    el.scrollWidthel.scrollHeight,
                
    cw el.clientWidthch el.clientHeight,
                
    scrolled falsev,
                
    hash = {
                    
    lMath.min(distancew-cw),
                    
    rMath.max(distance0),
                    
    tMath.max(distance0),
                    
    bMath.min(distanceh-ch)
                };
                
    hash.hash.b;
                
    hash.hash.t;
                
             
    direction direction.substr(01);
             if((
    hash[direction]) > -1){
                
    scrolled true;
                
    this.scrollTo(direction == 'l' || direction == 'r' 'left' 'top'vthis.preanim(arguments2));
             }
             return 
    scrolled;
        }


    }] 

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Answers
    1
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    You could simply include Element.scroll-more.js to get a working scroll methods.

    (but you would be mixing GPL and MIT code - is that a problem?)

  5. #5
    Sencha User
    Join Date
    Apr 2007
    Location
    Ettlingen, Germany
    Posts
    65
    Vote Rating
    0
    Mark is on a distinguished road

      0  

    Default


    Yes, thank you, I will try it. The licening stuff is not a problem in the moment. I only wish to figure out, if I could replace jQuery with Ext Core without a lack of functionallity and comfort. And therefore I tried to translate some simple functions from jQuery
    to Ext.Core. But it seems that I miss some basic features (e.g animated scrolling) in Ext Core?? :-(

  6. #6
    Sencha User
    Join Date
    Apr 2007
    Location
    Ettlingen, Germany
    Posts
    65
    Vote Rating
    0
    Mark is on a distinguished road

      0  

    Default


    I've included the Element.scroll-more.js but my little Script won't run.

    PHP Code:
     Ext.Element.addMethods(
          {

          
    scrollToAnchor: function(tsed) {
              var 
    off = (!== undefined)? d20;

              var 
    anc this.select('a[name='+t+']').first();
              var 
    distance anc.getY();
              var 
    opt = {
              
    duration|| 2,
              
    easing|| 'easeOutStrong',
              
    scopethis
              
    };
              var 
    dir;
              if(
    distance >= 0) {
                
    dir 'b';
              }else {
                
    dir 't';
                
    distance this.dom.scrollTop;
              }
              
    // alert(distance);
              
    this.scroll(dirdistanceopt);
               return 
    this;
            }
    }) 
    the var anc is always '0' therefore I think it depence on the select-command.
    Nevertheless everything goes fine when I include Extjs 3.2 instead Ext Core3!

    Any ideas?

  7. #7
    Sencha User
    Join Date
    Apr 2007
    Location
    Ettlingen, Germany
    Posts
    65
    Vote Rating
    0
    Mark is on a distinguished road

      0  

    Default Censored ????

    Censored ????



    Why is my last posting not published?
    I've got a message, that my posting is in a proofing process by a Moderator?
    For me it is a brand new habit in this forum! Pretty strange!!



    Haste makes waste! ;-)
    Last edited by Mark; 19 Jun 2010 at 3:13 AM. Reason: My Post was favored.

Similar Threads

  1. Replies: 3
    Last Post: 8 Apr 2010, 8:09 AM
  2. scroll down the scroll, then store.removeAll will cause a flash
    By aj3423 in forum Ext 3.x: Help & Discussion
    Replies: 14
    Last Post: 3 Jun 2009, 5:48 PM
  3. Scroll scroll scroooolllll at a fixed position !!!
    By j-mi-jim in forum Community Discussion
    Replies: 0
    Last Post: 12 Feb 2009, 6:49 AM
  4. label is scroll with scrollbar,but the field is not scroll
    By edisundong in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Jan 2008, 3:25 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar