Help for Safari + FF on Mac sidebox position bug

Force a re-layout of the sidebox scroll to get the correct position
This commit is contained in:
Nathan Gray 2016-02-24 17:57:55 +00:00
parent 1dada7d0fd
commit a837f8d30c

View File

@ -3269,6 +3269,15 @@ app.classes.calendar = AppJS.extend(
buttons.position({my: 'center', at: 'center', of: go_button})
.css('left', '');
}
// Try to fix sidebox's FF+Safari / mac weird position of bottom arrow problem
// As far as I can tell, they get the position of the ..._outerdiv wrong
// so we force a layout
if(window.navigator.userAgent.match('Macintosh'))
{
window.setTimeout(function() {
$j('.egw_fw_ui_scrollarea_outerdiv')[0].scrollIntoView();
}, 0);
}
} catch (e){
// Resize didn't work
}