Skip to content

Commit b3c9079

Browse files
committed
Repair popup presentation positioning
1 parent b016b0e commit b3c9079

9 files changed

+269
-35
lines changed

css/_igv-generic-container.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
.igv-generic-container {
33

4-
position: absolute;
4+
position: fixed;
55

6-
top: 50%;
6+
top: 20%;
77
left: 50%;
8-
transform: translate(-50%, -50%);
8+
transform: translateX(-50%);
99

1010
z-index: 2048;
1111

css/_igv-generic-dialog-container.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ $igv-button-width: 75px;
3232
// generic dialog
3333
.igv-generic-dialog-container {
3434

35-
position: absolute;
35+
position: fixed;
3636

37-
top: 50%;
37+
top: 20%;
3838
left: 50%;
39-
transform: translate(-50%, -50%);
39+
transform: translateX(-50%);
4040

4141
width:300px;
4242
height:200px;

css/_igv-ui-colorpicker.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ $igv-color-swatch-border-width: 2px;
44

55
.igv-ui-generic-container {
66

7+
position: fixed;
8+
9+
top: 20%;
710
left: 50%;
8-
top: 75%;
9-
transform: translate(-50%, -25%);
11+
transform: translateX(-50%);
1012

1113
flex-direction: column;
1214
flex-wrap: nowrap;

css/_igv-ui-generic-container.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11

22
.igv-ui-generic-container {
33

4-
box-sizing: content-box;
4+
position: fixed;
5+
6+
top: 20%;
7+
left: 50%;
8+
transform: translateX(-50%);
59

6-
position: absolute;
710
z-index: 2048;
811

912
background-color: white;
1013

1114
cursor: pointer;
1215

16+
box-sizing: content-box;
17+
1318
display: flex;
1419
flex-direction: row;
1520
flex-wrap: wrap;

css/_igv-ui-generic-dialog-container.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44

55
box-sizing: content-box;
66

7-
position: absolute;
7+
position: fixed;
88

9-
top: 50%;
9+
top: 20%;
1010
left: 50%;
11-
transform: translate(-50%, -50%);
11+
transform: translateX(-50%);
12+
13+
z-index: 2048;
14+
15+
background-color: white;
16+
17+
cursor: pointer;
1218

1319
width:300px;
1420
height:fit-content;
@@ -23,10 +29,6 @@
2329
font-size: medium;
2430
font-weight: 400;
2531

26-
z-index: 2048;
27-
28-
background-color: white;
29-
3032
display: flex;
3133
flex-flow: column;
3234
flex-wrap: nowrap;

css/igv.css

Lines changed: 20 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)