Skip to content

Commit 0c8a652

Browse files
committed
Merge #20109 - Fix #18927 - Allow resize of GIS visualization vertically
Pull-request: #20109 Fixes: #18927 Signed-off-by: William Desportes <williamdes@wdes.fr>
2 parents 1538529 + 5d6f27f commit 0c8a652

5 files changed

Lines changed: 22 additions & 2 deletions

File tree

‎public/themes/bootstrap/scss/_common.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,12 +1143,17 @@ input#auto_increment_opt {
11431143
border: 1px solid #aaa;
11441144
overflow: hidden;
11451145
box-sizing: content-box;
1146+
resize: vertical;
11461147

11471148
.visualization-target {
11481149
height: 100%;
11491150
}
11501151

11511152
.visualization-target-svg {
1153+
>svg {
1154+
height: 100%;
1155+
}
1156+
11521157
.button {
11531158
position: absolute;
11541159
cursor: pointer;

‎public/themes/metro/scss/_common.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,12 +1408,17 @@ input#auto_increment_opt {
14081408
border: 1px solid #aaa;
14091409
overflow: hidden;
14101410
box-sizing: content-box;
1411+
resize: vertical;
14111412

14121413
.visualization-target {
14131414
height: 100%;
14141415
}
14151416

14161417
.visualization-target-svg {
1418+
>svg {
1419+
height: 100%;
1420+
}
1421+
14171422
.button {
14181423
position: absolute;
14191424
cursor: pointer;

‎public/themes/original/scss/_common.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,12 +1150,17 @@ input#auto_increment_opt {
11501150
border: 1px solid #aaa;
11511151
overflow: hidden;
11521152
box-sizing: content-box;
1153+
resize: vertical;
11531154

11541155
.visualization-target {
11551156
height: 100%;
11561157
}
11571158

11581159
.visualization-target-svg {
1160+
>svg {
1161+
height: 100%;
1162+
}
1163+
11591164
.button {
11601165
position: absolute;
11611166
cursor: pointer;

‎public/themes/pmahomme/scss/_common.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,12 +1349,17 @@ input#auto_increment_opt {
13491349
border: 1px solid #aaa;
13501350
overflow: hidden;
13511351
box-sizing: content-box;
1352+
resize: vertical;
13521353

13531354
.visualization-target {
13541355
height: 100%;
13551356
}
13561357

13571358
.visualization-target-svg {
1359+
>svg {
1360+
height: 100%;
1361+
}
1362+
13581363
.button {
13591364
position: absolute;
13601365
cursor: pointer;

‎resources/js/table/gis_visualization.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ class SvgVisualization extends GisVisualization {
121121
super(target);
122122

123123
this.svgEl = $(this.target).find('svg').get(0);
124-
this.originalWidth = $(this.svgEl).width();
125-
this.originalHeight = $(this.svgEl).height();
124+
this.originalWidth = Number(this.svgEl.getAttribute('width'));
125+
this.originalHeight = Number(this.svgEl.getAttribute('height'));
126126
this.width = this.originalWidth;
127127
this.height = this.originalHeight;
128128

0 commit comments

Comments
 (0)