Thomas Bruederli
2012-07-12 3f9518f0a7e49ec259299093ae63f7de5b2f430e
skins/larry/ui.js
@@ -220,6 +220,7 @@
    // don't use $(window).resize() due to some unwanted side-effects
    window.onresize = resize;
    resize();
  }
  /**
@@ -257,6 +258,20 @@
    if (rcmail.env.task == 'mail' && rcmail.env.action == 'compose') {
      layout_composeview();
    }
    // make iframe footer buttons float if scrolling is active
    $('body.iframe .footerleft').each(function(){
      var footer = $(this),
        body = $(document.body),
        floating = footer.hasClass('floating'),
        overflow = body.outerHeight(true) > $(window).height();
      if (overflow != floating) {
        var action = overflow ? 'addClass' : 'removeClass';
        footer[action]('floating');
        body[action]('floatingbuttons');
      }
    })
  }
  /**
@@ -265,7 +280,7 @@
  function message_displayed(p)
  {
    // show a popup dialog on errors
    if (p.type == 'error') {
    if (p.type == 'error' && rcmail.env.task != 'login') {
      if (!me.messagedialog) {
        me.messagedialog = $('<div>').addClass('popupdialog');
      }