Changeset 5671 in subversion
- Timestamp:
- Dec 31, 2011 5:27:27 AM (17 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/skins/larry/ui.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/skins/larry/ui.js
r5670 r5671 803 803 this.p1.resize(); 804 804 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 805 813 if (typeof this.render == 'function') 806 814 this.render(this); … … 824 832 825 833 // 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') 828 838 .css({ background: '#fff', 829 width: this.offsetWidth+'px', height: this.offsetHeight+'px',839 width: elem.offsetWidth+'px', height: elem.offsetHeight+'px', 830 840 position: 'absolute', opacity: '0.001', zIndex: 1000 831 841 }) … … 883 893 884 894 // remove temp divs 885 $('div.iframe-splitter-fix'). each(function(){ this.parentNode.removeChild(this); });895 $('div.iframe-splitter-fix').remove(); 886 896 887 897 me.set_cookie();
Note: See TracChangeset
for help on using the changeset viewer.
