Просмотр исходного кода

Merge pull request #398 from weseek/fix/394-sidebar-breaks-editor-layouts

Fix/394 sidebar breaks editor layouts
Yuki Takei 8 лет назад
Родитель
Сommit
2f73591164

+ 2 - 0
resource/js/components/PageEditor/Editor.js

@@ -130,6 +130,8 @@ export default class Editor extends React.Component {
       this.getCodeMirror().focus();
       if (editor.hasFocus()) {
         clearInterval(intervalId);
+        // refresh
+        editor.refresh();
       }
     }, 100);
   }

+ 6 - 6
resource/styles/agile-admin/inverse/eliteadmin.scss

@@ -830,15 +830,15 @@ label{
 // Wrappers
 
 #wrapper {
-    width: 100%;
-
+  position: relative;
+  width: 100%;
 }
 
 #page-wrapper {
-    padding: 0px;
-    min-height: 568px;
-    background:$bodycolor;
-    padding-bottom:60px;
+  padding: 0px;
+  min-height: 568px;
+  background:$bodycolor;
+  padding-bottom:60px;
 }
 
 /*

+ 2 - 2
resource/styles/scss/_on-edit.scss

@@ -51,7 +51,7 @@ body.on-edit {
     padding-bottom: 0;
   }
   .main {
-    width: 100vw;
+    width: 100%;
     height: 100vh;
     margin-top: 0px !important;
     padding-top: 2px;
@@ -62,7 +62,7 @@ body.on-edit {
     > .row {
       margin: 0;
       > .col-lg-10, > .col-md-9 {
-        width: 100vw;
+        width: 100%;
         padding: 0;
       }
     }