SAMYANG/m/asset/js/sy.m.plugin.js
/**
         * When resizing is finished, we adjust the slides sizes and positions
         */
When resizing is finished, we adjust the slides sizes and positions
When resizing is finished we adjust the slides sizes and positions
function reBuild(resizing) {
            if (container.hasClass(DESTROYED)) {
                return;
            }  
            isResizing = true;
            windowsHeight = $window.height();  
            $(SECTION_SEL).each(function () {
                var slidesWrap = $(this).find(SLIDES_WRAPPER_SEL);
                var slides = $(this).find(SLIDE_SEL);
                if (options.verticalCentered) {
                }
                if (slides.length > 1) {
                    landscapeScroll(slidesWrap, slidesWrap.find(SLIDE_ACTIVE_SEL));
                }
            });
            if (options.scrollOverflow) {
                scrollBarHandler.createScrollBarForAll();
            }
            var activeSection = $(SECTION_ACTIVE_SEL);
            var sectionIndex = activeSection.index(SECTION_SEL);
            if (sectionIndex) {
                silentMoveTo(sectionIndex + 1);
            }
            isResizing = false;
            $.isFunction(options.afterResize) && resizing && options.afterResize.call(container);
            $.isFunction(options.afterReBuild) && !resizing && options.afterReBuild.call(container);
        }
function reBuild ( resizing ) { if ( container . hasClass ( DESTROYED ) ) { return ; } isResizing = true ; windowsHeight = $window . height ( ) ; $ ( SECTION_SEL ) . each ( function ( ) { var slidesWrap = $ ( this ) . find ( SLIDES_WRAPPER_SEL ) ; var slides = $ ( this ) . find ( SLIDE_SEL ) ; if ( options . verticalCentered ) { } if ( slides . length > 1 ) { landscapeScroll ( slidesWrap , slidesWrap . find ( SLIDE_ACTIVE_SEL ) ) ; } } ) ; if ( options . scrollOverflow ) { scrollBarHandler . createScrollBarForAll ( ) ; } var activeSection = $ ( SECTION_ACTIVE_SEL ) ; var sectionIndex = activeSection . index ( SECTION_SEL ) ; if ( sectionIndex ) { silentMoveTo ( sectionIndex + 1 ) ; } isResizing = false ; $ . isFunction ( options . afterResize ) && resizing && options . afterResize . call ( container ) ; $ . isFunction ( options . afterReBuild ) && ! resizing && options . afterReBuild . call ( container ) ; }
When resizing is finished, we adjust the slides sizes and positions
When resizing is finished we adjust the slides sizes and positions
//nothing to do if the plugin was destroyed //updating global var //adjusting the height of the table-cell for IE and Firefox //$(this).find(TABLE_CELL_SEL).css('height', getTableHeight($(this)) + 'px'); //$(this).css('height', windowsHeight + 'px'); //adjusting the position fo the FULL WIDTH slides... //isn't it the first section? //adjusting the position for the current section