Skip to content

Commit

Permalink
Don't do resize until the page is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 6, 2014
1 parent 0d80b79 commit db3ea12
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions imp/js/dimpbase.js
Expand Up @@ -4163,14 +4163,16 @@ var DimpBase = {

_onResize: function()
{
this._sizeFolderlist();
this.splitbar.setStyle({
height: document.viewport.getHeight() + 'px'
});
if ($('dimpmain_iframe').visible()) {
$('dimpmain_iframe').down('IFRAME').setStyle({
height: $('horde-page').getHeight() + 'px'
if (!$('dimpLoading').visible()) {
this._sizeFolderlist();
this.splitbar.setStyle({
height: document.viewport.getHeight() + 'px'
});
if ($('dimpmain_iframe').visible()) {
$('dimpmain_iframe').down('IFRAME').setStyle({
height: $('horde-page').getHeight() + 'px'
});
}
}
},

Expand Down

0 comments on commit db3ea12

Please sign in to comment.