[evolution] EHTMLEditorView - Newly inserted tables have nearly zero height
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Newly inserted tables have nearly zero height
- Date: Fri, 6 Mar 2015 08:41:05 +0000 (UTC)
commit ed6ec8dc208d9b04f20cba90939fc2f63da0961d
Author: Tomas Popela <tpopela redhat com>
Date: Fri Mar 6 09:15:05 2015 +0100
EHTMLEditorView - Newly inserted tables have nearly zero height
When inserting a new table into contenteditable element the width of the cells
is nearly zero and the td { min-height } doesn't work so put unicode zero width
space before each cell.
e-util/e-html-editor-view.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index f0611e1..a7e07e4 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -8759,6 +8759,15 @@ e_html_editor_view_update_fonts (EHTMLEditorView *view)
" margin-bottom: 0.2em;\n"
"}\n");
+ /* When inserting a table into contenteditable element the width of the
+ * cells is nearly zero and the td { min-height } doesn't work so put
+ * unicode zero width space before each cell. */
+ g_string_append (
+ stylesheet,
+ "td::before {\n"
+ " content: \"\xe2\x80\x8b\";"
+ "}\n");
+
g_string_append (
stylesheet,
"img "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]