8
0
Просмотр исходного кода

Added styles that stretch the table to the full dimensions of the parent figure when width and/or height are set.

Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
da2499f9fe
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      packages/ckeditor5-table/theme/table.css

+ 5 - 0
packages/ckeditor5-table/theme/table.css

@@ -13,6 +13,11 @@
 		border-collapse: collapse;
 		border-spacing: 0;
 
+		/* Table width and height are set on the parent <figure>. Make sure the table inside stretches
+		to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */
+		width: 100%;
+		height: 100%;
+
 		/* The outer border of the table should be slightly darker than the inner lines.
 		Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
 		border: 1px double hsl(0, 0%, 70%);