From 10abf2bc2d08526ad69c6e8691b0a3384603fcc1 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Mon, 03 Feb 2014 06:13:25 -0500 Subject: [PATCH] Fix bug where it wasn't possible to focus the messages list with mouse click on a record after the focus was put on preview frame. --- program/js/list.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/program/js/list.js b/program/js/list.js index c49a897..e05d9fb 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -195,7 +195,12 @@ var me = this; $(window).resize(function(){ me.resize() }); - $(window).scroll(function(){ me.fixed_header.css({ 'marginLeft': (-$(window).scrollLeft()) + 'px' }) }); + $(window).scroll(function(){ + var w = $(window); + me.fixed_header.css('marginLeft', (-w.scrollLeft()) + 'px'); + if (!bw.webkit) + me.fixed_header.css('marginTop', (-w.scrollTop()) + 'px'); + }); } else { $(this.fixed_header).find('thead').replaceWith(clone); @@ -360,7 +365,7 @@ // Un-focus already focused elements (#1487123, #1487316, #1488600, #1488620) // It looks that window.focus() does the job for all browsers, but not Firefox (#1489058) - $(':focus:not(body)').blur(); + $('iframe,:focus:not(body)').blur(); window.focus(); if (e || (e = window.event)) -- Gitblit v1.9.1