1. #11
    Sencha User digerata's Avatar
    Join Date
    Mar 2007
    Location
    Clarkston, Michigan
    Posts
    61
    Vote Rating
    0
    digerata is on a distinguished road

      0  

    Default


    Moving it to Bugs works for me. The example in the first post works to demonstrate as long as the script paths are updated.

  2. #12
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,166
    Vote Rating
    323
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    OK, moving.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Blessing and Curse of refs, Grid MultiSearch Plugin


  3. #13
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    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


    In standards mode the body will be the height of the content, so it can't scroll.

    If you want the body to scroll you should make the body the height of the viewport, e.g.
    Code:
    html {
    	height: 100%;
    	overflow: hidden;
    }
    body {
    	height: 100%;
    	overflow: auto;
    }

  4. #14
    Sencha User digerata's Avatar
    Join Date
    Mar 2007
    Location
    Clarkston, Michigan
    Posts
    61
    Vote Rating
    0
    digerata is on a distinguished road

      0  

    Default


    That works! Thanks for the input.

    However, it results in strange margins that have to be corrected in a container div to maintain the existing layout.

    So it is not a drop in replacement without forcing structural HTML changes on the end user. I wonder if it wouldn't be easier to incorporate the window scroll animation into Ext?

    Thanks again, Condor.

  5. #15
    Ext User meza's Avatar
    Join Date
    Mar 2008
    Posts
    5
    Vote Rating
    0
    meza is on a distinguished road

      0  

    Default


    Quote Originally Posted by Condor View Post
    In standards mode the body will be the height of the content, so it can't scroll.

    If you want the body to scroll you should make the body the height of the viewport, e.g.
    Code:
    html {
    	height: 100%;
    	overflow: hidden;
    }
    body {
    	height: 100%;
    	overflow: auto;
    }
    Thats the way to go!

    Thanks!

  6. #16
    Sencha User scipio's Avatar
    Join Date
    Nov 2007
    Posts
    38
    Vote Rating
    0
    scipio is on a distinguished road

      0  

    Default


    Thanks digerata, your solution with window.scroll is the way to go because it works in all the major browsers.

    The suggestion of using the following styling in conjunction with Ext Js' .scrollTo method

    Code:
    html {
    	height: 100%;
    	overflow: hidden;
    }
    body {
    	height: 100%;
    	overflow: auto;
    }
    almost works, but it fails in Safari.

  7. #17
    Sencha User digerata's Avatar
    Join Date
    Mar 2007
    Location
    Clarkston, Michigan
    Posts
    61
    Vote Rating
    0
    digerata is on a distinguished road

      0  

    Default


    Yeah, that's the important thing. It just works and without having to change your markup to support it. (Not to mention all other JS libraries do it that way) Hopefully, a solution using window.scroll animation will get added into Ext.

  8. #18
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    24
    Vote Rating
    0
    wck555 is on a distinguished road

      0  

    Default


    I am having the same issue (still not fixed as of Ext 3.2.1). I need to scroll the document body but I need to use standards mode so all my non ExtJS stuff renders correctly cross-browser. Here's a simplified solution that works with the ext adapter and doesn't require a new 'scrollWindow' animation type. I override the scroll animation to use scrollTo() for the body element and scrollLeft/scrollTop for any other element.

    Code:
    Ext.override(Ext.lib.Scroll, {
        setAttr : function(attr, val, unit) {
            var me = this;
    
            if(attr == 'scroll'){
                if(me.el == Ext.getBody().dom)
                {
                    window.scrollTo(val[0], val[1]);
                }
                else
                {
                    me.el.scrollLeft = val[0];
                    me.el.scrollTop = val[1];
                }
            }else{
                superclass.setAttr.call(me, attr, val, unit);
            }
        }
    });

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