render() {
        // Cache scroll position
        let body = this.namedElements.body;

        if(body instanceof HashBrown.Entity.View.ViewBase) {
            body = body.element;
        }
        
        let scrollTop = 0;

        if(body) {
            scrollTop = body.scrollTop;
        }

        super.render();
        
        // Restore scroll position
        body = this.namedElements.body;

        if(body instanceof HashBrown.Entity.View.ViewBase) {
            body = body.element;
        }
        
        if(body) {
            body.scrollTop = scrollTop;
        }
    }
/**
     * Override render to maintain scroll position
     */
Override render to maintain scroll position
Override render to maintain scroll position
render() {
        let body = this.namedElements.body;
        if(body instanceof HashBrown.Entity.View.ViewBase) {
            body = body.element;
        }
        let scrollTop = 0;
        if(body) {
            scrollTop = body.scrollTop;
        }
        super.render();
        body = this.namedElements.body;
        if(body instanceof HashBrown.Entity.View.ViewBase) {
            body = body.element;
        }
        if(body) {
            body.scrollTop = scrollTop;
        }
    }
render ( ) { let body = this . namedElements . body ; if ( body instanceof HashBrown . Entity . View . ViewBase ) { body = body . element ; } let scrollTop = 0 ; if ( body ) { scrollTop = body . scrollTop ; } super . render ( ) ; body = this . namedElements . body ; if ( body instanceof HashBrown . Entity . View . ViewBase ) { body = body . element ; } if ( body ) { body . scrollTop = scrollTop ; } }
Override render to maintain scroll position
Override render to maintain scroll position
// Cache scroll position // Restore scroll position