Co-authored-by: Maximilian Krög <maxi_kroeg@web.de>
This commit is contained in:
Liviu-Mihail Concioiu 2026-02-15 23:47:10 +01:00
parent a1e8e429b0
commit 5d6f27f6ed
5 changed files with 18 additions and 18 deletions

View File

@ -1145,15 +1145,15 @@ input#auto_increment_opt {
box-sizing: content-box;
resize: vertical;
svg {
height: 100%;
}
.visualization-target {
height: 100%;
}
.visualization-target-svg {
>svg {
height: 100%;
}
.button {
position: absolute;
cursor: pointer;

View File

@ -1410,15 +1410,15 @@ input#auto_increment_opt {
box-sizing: content-box;
resize: vertical;
svg {
height: 100%;
}
.visualization-target {
height: 100%;
}
.visualization-target-svg {
>svg {
height: 100%;
}
.button {
position: absolute;
cursor: pointer;

View File

@ -1152,15 +1152,15 @@ input#auto_increment_opt {
box-sizing: content-box;
resize: vertical;
svg {
height: 100%;
}
.visualization-target {
height: 100%;
}
.visualization-target-svg {
>svg {
height: 100%;
}
.button {
position: absolute;
cursor: pointer;

View File

@ -1351,15 +1351,15 @@ input#auto_increment_opt {
box-sizing: content-box;
resize: vertical;
svg {
height: 100%;
}
.visualization-target {
height: 100%;
}
.visualization-target-svg {
>svg {
height: 100%;
}
.button {
position: absolute;
cursor: pointer;

View File

@ -121,8 +121,8 @@ class SvgVisualization extends GisVisualization {
super(target);
this.svgEl = $(this.target).find('svg').get(0);
this.originalWidth = $(this.svgEl).width();
this.originalHeight = $(this.svgEl).height();
this.originalWidth = Number(this.svgEl.getAttribute('width'));
this.originalHeight = Number(this.svgEl.getAttribute('height'));
this.width = this.originalWidth;
this.height = this.originalHeight;