forked from extern/egroupware
Prevent egw window resize happens on each reload even if the window has not been resized manualy
This commit is contained in:
parent
6ad027d446
commit
3e790be681
@ -245,7 +245,8 @@
|
||||
{
|
||||
delta_height = 0;
|
||||
}
|
||||
if(delta_width != 0 || delta_height != 0)
|
||||
if((delta_width != 0 || delta_height != 0) &&
|
||||
(delta_width >2 || delta_height >2 || delta_width<-2 || delta_height < -2))
|
||||
{
|
||||
|
||||
if (window.framework && typeof window.framework.resize_popup != 'undefined')
|
||||
@ -254,7 +255,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
window.resizeTo(egw_getWindowOuterWidth() - delta_width+8, egw_getWindowOuterHeight() - delta_height+10);
|
||||
window.resizeTo(egw_getWindowOuterWidth() - delta_width+8, egw_getWindowOuterHeight() - delta_height);
|
||||
}
|
||||
}
|
||||
// trigger a 2. resize, as one is not enough, if window is zoomed
|
||||
|
Loading…
Reference in New Issue
Block a user