[evolution/wip/webkit2] EHTMLEditorView - Newly inserted tables have nearly zero height



commit baf854a7f8c7ac573f06310b0e994b9f56b9ade5
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Mar 30 10:43:34 2015 +0200

    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 5433b79..14f14df 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2493,6 +2493,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]