Explorar o código

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

Aleksander Nowodzinski %!s(int64=6) %!d(string=hai) anos
pai
achega
da2499f9fe
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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-collapse: collapse;
 		border-spacing: 0;
 		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.
 		/* The outer border of the table should be slightly darker than the inner lines.
 		Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
 		Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
 		border: 1px double hsl(0, 0%, 70%);
 		border: 1px double hsl(0, 0%, 70%);