Aleksander Machniak
2012-08-29 bbbacdc69832d2993b6e2f6416f88ef833636a8a
Call resize() to fix floatingbuttons position in tabbed page (on tab selection)
1 files modified
12 ■■■■■ changed files
skins/larry/ui.js 12 ●●●●● patch | view | raw | blame | history
skins/larry/ui.js
@@ -254,10 +254,10 @@
   */
  function resize()
  {
    if (rcmail.env.task == 'mail' && (rcmail.env.action == 'show' || rcmail.env.action == 'preview')) {
    if (rcmail.env.task == 'mail') {
      if (rcmail.env.action == 'show' || rcmail.env.action == 'preview')
      layout_messageview();
    }
    if (rcmail.env.task == 'mail' && rcmail.env.action == 'compose') {
      else if (rcmail.env.action == 'compose')
      layout_composeview();
    }
@@ -267,13 +267,13 @@
        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');
      }
    })
    });
  }
  /**
@@ -847,6 +847,8 @@
      // Select/unselect tab
      $('#tab'+idx).toggleClass('selected', idx==index);
    });
    resize();
  }
  /**