mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02: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})
|
buttons.position({my: 'center', at: 'center', of: go_button})
|
||||||
.css('left', '');
|
.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){
|
} catch (e){
|
||||||
// Resize didn't work
|
// Resize didn't work
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user