mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Determine the scale factor correctly
Fix error in the logic of the context renderer, that lead to a wrong scale factor when the width was bigger than the height
This commit is contained in:
parent
8d697a3d8e
commit
3ed67c9af6
@ -92,9 +92,9 @@ class RenderContext
|
||||
{
|
||||
$this->document = $document;
|
||||
if ($width > $height) {
|
||||
$this->xratio = $width/$height;
|
||||
} elseif ($height < $width) {
|
||||
$this->yratio = $width/$height;
|
||||
$this->xratio = $width / $height;
|
||||
} elseif ($height > $width) {
|
||||
$this->yratio = $height / $width;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user