Browse Source

fix: changed modal to fixed positioned, this change makes modal maintain scroll position, fixes #8800

Torkel Ödegaard 8 years ago
parent
commit
62f5770908
1 changed files with 3 additions and 2 deletions
  1. 3 2
      public/sass/components/_modals.scss

+ 3 - 2
public/sass/components/_modals.scss

@@ -20,7 +20,8 @@
 
 
 // Base modal
 // Base modal
 .modal {
 .modal {
-  position: absolute;
+  position: fixed;
+  overflow: hidden;
   z-index: $zindex-modal;
   z-index: $zindex-modal;
   width: 100%;
   width: 100%;
 	background-color: $panel-bg;
 	background-color: $panel-bg;
@@ -33,7 +34,7 @@
   right: 0;
   right: 0;
   margin-left: auto;
   margin-left: auto;
   margin-right: auto;
   margin-right: auto;
-  top: 20%;
+  top: 10%;
 }
 }
 
 
 .modal-header {
 .modal-header {