mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch '1042-Descuadre-en-consola-visual-dev' into 'develop'
Fixed visual console render img See merge request !612
This commit is contained in:
commit
24728cc062
@ -286,8 +286,13 @@ $ignored_params['refr'] = '';
|
|||||||
$(this).css('margin-left','');
|
$(this).css('margin-left','');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(this).css('margin-left',(parseInt($(this).parent().parent().css('width'))/2-parseInt($(this).css('width'))/2)+'px');
|
if(parseInt($(this).parent().parent().css('width'))/2-parseInt($(this).css('width'))/2 < 0){
|
||||||
$(this).css('margin-top','');
|
$(this).css('margin-left','');
|
||||||
|
$(this).css('margin-top','');
|
||||||
|
} else {
|
||||||
|
$(this).css('margin-left',(parseInt($(this).parent().parent().css('width'))/2-parseInt($(this).css('width'))/2)+'px');
|
||||||
|
$(this).css('margin-top','');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user