diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-31 10:27:27 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-31 10:27:27 +0000 |
| commit | 2676c91de2bb99f3fd901c9527365961c1b68fd9 (patch) | |
| tree | e04be595f80402b6235e453d22b17d3c39b7fcfa | |
| parent | 94bd6cde7c08eb8a66b7f58944ef7bbb35514f72 (diff) | |
Fix splitter resizing over iframes
git-svn-id: https://svn.roundcube.net/trunk@5671 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/skins/larry/ui.js | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/roundcubemail/skins/larry/ui.js b/roundcubemail/skins/larry/ui.js index 9799ab8a8..c1bbfada8 100644 --- a/roundcubemail/skins/larry/ui.js +++ b/roundcubemail/skins/larry/ui.js @@ -802,6 +802,14 @@ function rcube_splitter(p) this.p2.resize(); this.p1.resize(); + // also resize iframe covers + if (this.drag_active) { + $('iframe').each(function(i, elem) { + var pos = $(this).offset(); + $('#iframe-splitter-fix-'+i).css({ top: pos.top+'px', left: pos.left+'px', width:elem.offsetWidth+'px', height: elem.offsetHeight+'px' }); + }); + } + if (typeof this.render == 'function') this.render(this); }; @@ -823,10 +831,12 @@ function rcube_splitter(p) $(document).bind('mousemove.'+this.id, onDrag).bind('mouseup.'+this.id, onDragStop); // enable dragging above iframes - $('iframe').each(function() { - $('<div class="iframe-splitter-fix"></div>') + $('iframe').each(function(i, elem) { + $('<div>') + .attr('id', 'iframe-splitter-fix-'+i) + .addClass('iframe-splitter-fix') .css({ background: '#fff', - width: this.offsetWidth+'px', height: this.offsetHeight+'px', + width: elem.offsetWidth+'px', height: elem.offsetHeight+'px', position: 'absolute', opacity: '0.001', zIndex: 1000 }) .css($(this).offset()) @@ -882,7 +892,7 @@ function rcube_splitter(p) me.drag_active = false; // remove temp divs - $('div.iframe-splitter-fix').each(function(){ this.parentNode.removeChild(this); }); + $('div.iframe-splitter-fix').remove(); me.set_cookie(); |
