Changeset 7581


Ignore:
Timestamp:
Nov 2, 2010, 10:57:55 PM (13 years ago)
Author:
repie38
Message:

bug:1095
js fix for footer div height (now minimum 50px) thanks to mistic100

Location:
extensions/paMOOramics/js
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/paMOOramics/js/pamoorama0.3.js

    r3700 r7581  
    8585                        });
    8686                       
     87                        if((Math.floor(this.imageHeight / this.ratio) + 22) < 50){
     88                          this.newFooterHeight = 50;
     89                        }else{
     90                          this.newFooterHeight = (Math.floor(this.imageHeight / this.ratio) + 22);
     91                        }
     92                       
    8793                        this.footer = new Element('div', {
    8894                                'id': this.elid + '_footer',
    8995                                'styles': {
    9096                                        'width' : this.options.width + 'px',
    91                                         'height': (Math.floor(this.imageHeight / this.ratio) + 22) + 'px',
     97                                        'height': this.newFooterHeight + 'px',
    9298                                        'background-color': this.options.footercolor
    9399                                }
Note: See TracChangeset for help on using the changeset viewer.