Ignore:
Timestamp:
Jan 17, 2014, 11:10:30 PM (10 years ago)
Author:
rvelices
Message:

modus ui simplification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/modus/js/thumb.arrange.js

    r25794 r26836  
    6464                this.opts.rowHeight = Math.round(this.opts.rowHeight / dpr ) + this.opts.extraRowHeight;
    6565        }
     66        else {
     67                this.opts.resizeThreshold = 1.1; /*if row is less than 10% larger than available width, distribute extra width through cropping*/
     68                this.opts.resizeFactor = 0.8;/* when row is more than 10% larger than available width, distribute extra width 80% through resizing and 20% through cropping*/
     69        }
    6670        this.process();
    6771
     
    7478                        that.process( down && that.$thumbs.width() == that.prevContainerWidth ? that.prevLastLineFirstThumbIndex : 0);
    7579                } );
     80
     81        if (!$.isReady) {
     82                $(document).ready( function() {
     83                        if ( that.$thumbs.width() < that.prevContainerWidth )
     84                                that.process();
     85                        } );
     86        }
    7687}
    7788
Note: See TracChangeset for help on using the changeset viewer.