Changeset 5671 in subversion


Ignore:
Timestamp:
Dec 31, 2011 5:27:27 AM (17 months ago)
Author:
thomasb
Message:

Fix splitter resizing over iframes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/skins/larry/ui.js

    r5670 r5671  
    803803    this.p1.resize(); 
    804804 
     805    // also resize iframe covers 
     806    if (this.drag_active) { 
     807      $('iframe').each(function(i, elem) { 
     808        var pos = $(this).offset(); 
     809        $('#iframe-splitter-fix-'+i).css({ top: pos.top+'px', left: pos.left+'px', width:elem.offsetWidth+'px', height: elem.offsetHeight+'px' }); 
     810      }); 
     811    } 
     812 
    805813    if (typeof this.render == 'function') 
    806814      this.render(this); 
     
    824832 
    825833    // enable dragging above iframes 
    826     $('iframe').each(function() { 
    827       $('<div class="iframe-splitter-fix"></div>') 
     834    $('iframe').each(function(i, elem) { 
     835      $('<div>') 
     836        .attr('id', 'iframe-splitter-fix-'+i) 
     837        .addClass('iframe-splitter-fix') 
    828838        .css({ background: '#fff', 
    829           width: this.offsetWidth+'px', height: this.offsetHeight+'px', 
     839          width: elem.offsetWidth+'px', height: elem.offsetHeight+'px', 
    830840          position: 'absolute', opacity: '0.001', zIndex: 1000 
    831841        }) 
     
    883893 
    884894    // remove temp divs 
    885     $('div.iframe-splitter-fix').each(function(){ this.parentNode.removeChild(this); }); 
     895    $('div.iframe-splitter-fix').remove(); 
    886896 
    887897    me.set_cookie(); 
Note: See TracChangeset for help on using the changeset viewer.