Show More
@@ -79,16 +79,11 require([ | |||||
79 |
|
79 | |||
80 | // Make sure the codemirror editor is sized appropriatley. |
|
80 | // Make sure the codemirror editor is sized appropriatley. | |
81 | var _handle_resize = function() { |
|
81 | var _handle_resize = function() { | |
82 |
var |
|
82 | var backdrop = $("#texteditor-backdrop"); | |
83 |
|
83 | |||
84 | // The header doesn't have a margin or padding above it. Calculate |
|
84 | // account for padding on the backdrop wrapper | |
85 | // the lower margin&padding by subtracting the innerHeight from the |
|
85 | var padding = backdrop.outerHeight(true) - backdrop.height(); | |
86 | // outerHeight. |
|
86 | $('div.CodeMirror').height($("#site").height() - padding); | |
87 | var header_margin_bottom = header.outerHeight(true) - header.innerHeight(); |
|
|||
88 |
|
||||
89 | // When scaling CodeMirror, subtract the header lower margin from the |
|
|||
90 | // height twice. Once for top padding and once for bottom padding. |
|
|||
91 | $('div.CodeMirror').height(window.innerHeight - header.height() - 2*header_margin_bottom); |
|
|||
92 | }; |
|
87 | }; | |
93 | $(window).resize(_handle_resize); |
|
88 | $(window).resize(_handle_resize); | |
94 |
|
89 |
@@ -10,7 +10,6 | |||||
10 | padding-bottom: @page-header-padding; |
|
10 | padding-bottom: @page-header-padding; | |
11 |
|
11 | |||
12 | @media not print{ |
|
12 | @media not print{ | |
13 | min-height: @page-backdrop-height; |
|
|||
14 | background-color: @page-backdrop-color; |
|
13 | background-color: @page-backdrop-color; | |
15 | } |
|
14 | } | |
16 |
|
15 | |||
@@ -27,7 +26,6 | |||||
27 | @media not print{ |
|
26 | @media not print{ | |
28 | padding: 0px; |
|
27 | padding: 0px; | |
29 | background-color : @page-color; |
|
28 | background-color : @page-color; | |
30 | min-height: @page-min-height; |
|
|||
31 | .box-shadow(@global-shadow); |
|
29 | .box-shadow(@global-shadow); | |
32 | } |
|
30 | } | |
33 | } |
|
31 | } |
@@ -8878,7 +8878,6 ul#new-menu { | |||||
8878 | } |
|
8878 | } | |
8879 | @media not print { |
|
8879 | @media not print { | |
8880 | #texteditor-backdrop { |
|
8880 | #texteditor-backdrop { | |
8881 | min-height: 100vh; |
|
|||
8882 | background-color: #eeeeee; |
|
8881 | background-color: #eeeeee; | |
8883 | } |
|
8882 | } | |
8884 | } |
|
8883 | } | |
@@ -8898,7 +8897,6 ul#new-menu { | |||||
8898 | #texteditor-backdrop #texteditor-container { |
|
8897 | #texteditor-backdrop #texteditor-container { | |
8899 | padding: 0px; |
|
8898 | padding: 0px; | |
8900 | background-color: #ffffff; |
|
8899 | background-color: #ffffff; | |
8901 | min-height: 0; |
|
|||
8902 | -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); |
|
8900 | -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); | |
8903 | box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); |
|
8901 | box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); | |
8904 | } |
|
8902 | } |
General Comments 0
You need to be logged in to leave comments.
Login now