Skip to content

Commit d854b0a

Browse files
committed
disabled padding of editor because of character hitting issue in RichTextFX FXMisc/RichTextFX#396
also moved :first-paragraph below :last-paragraph to fix top padding in case editor contains only one line
1 parent 04fbb72 commit d854b0a

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/main/resources/org/markdownwriterfx/editor/MarkdownEditor.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@
3030
}
3131

3232
/* editor padding */
33+
/* disabled because of character hitting issue in RichTextFX
34+
https://github.com/TomasMikula/RichTextFX/pull/396
3335
.markdown-editor .paragraph-box .paragraph-text {
3436
-fx-padding: 0 1em 0 1em;
3537
}
36-
.markdown-editor .paragraph-box:first-paragraph .paragraph-text {
37-
-fx-padding: 1em 1em 0 1em;
38-
}
3938
.markdown-editor .paragraph-box:last-paragraph .paragraph-text {
4039
-fx-padding: 0 1em 1em 1em;
4140
}
41+
.markdown-editor .paragraph-box:first-paragraph .paragraph-text {
42+
-fx-padding: 1em 1em 0 1em;
43+
}
44+
*/
4245

4346
/* highlight current line */
4447
.markdown-editor .paragraph-box:has-caret {
@@ -59,12 +62,15 @@
5962
}
6063

6164
/* editor padding */
65+
/* disabled because of character hitting issue in RichTextFX
66+
https://github.com/TomasMikula/RichTextFX/pull/396
6267
.markdown-editor .paragraph-box:first-paragraph .paragraph-graphic .gutter {
6368
-fx-padding: 1em 0 0 0;
6469
}
6570
.markdown-editor .paragraph-box:first-paragraph .paragraph-graphic .gutter.lineno {
6671
-fx-padding: 1em 0.25em 0 0.25em;
6772
}
73+
*/
6874

6975

7076
/*---- headers ----*/

0 commit comments

Comments
 (0)