Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: experimental/webtry/res/css/cm/codemirror.css

Issue 626033004: Automatically resize the webtry text editor to fit the content (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | experimental/webtry/res/js/webtry.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/res/css/cm/codemirror.css
diff --git a/experimental/webtry/res/css/cm/codemirror.css b/experimental/webtry/res/css/cm/codemirror.css
index 098a317a229098e2c0dd9b6eaf98f723bfc876c8..5c40eb6f6973f701abc1bdad026b41afd15990a4 100644
--- a/experimental/webtry/res/css/cm/codemirror.css
+++ b/experimental/webtry/res/css/cm/codemirror.css
@@ -3,11 +3,13 @@
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
- height: 300px;
}
.CodeMirror-scroll {
- /* Set scrolling behaviour here */
- overflow: auto;
+ /* These settings combine to allow the code portion to automatically resize itself */
+ height: auto;
+
+ overflow-x: auto;
+ overflow-y: hidden;
}
/* PADDING */
@@ -121,7 +123,6 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
/* See overflow: hidden in .CodeMirror */
margin-bottom: -30px; margin-right: -30px;
padding-bottom: 30px;
- height: 100%;
outline: none; /* Prevent dragging from highlighting the element */
position: relative;
-moz-box-sizing: content-box;
« no previous file with comments | « no previous file | experimental/webtry/res/js/webtry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698