mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
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:
parent
1dada7d0fd
commit
a837f8d30c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user