[BUGFIX] Resolves wrong usage of col and colgroup 97/50297/3
authorMarkus Sommer <markussom@posteo.de>
Fri, 14 Oct 2016 13:04:53 +0000 (15:04 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 20 Oct 2016 20:47:15 +0000 (22:47 +0200)
* Remove <col> calculate and use short syntax
* Add CSS to render the table fixed

Resolves: #78296
Releases: master, 7.6
Change-Id: Ibd698ac0ea19f005534d891debe1d8b17848d036
Reviewed-on: https://review.typo3.org/50297
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Build/Resources/Public/Less/TYPO3/_module_web_page.less
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 83a0bf4..b0cc257 100644 (file)
@@ -36,6 +36,7 @@
        border-collapse: separate;
        border-spacing: @page-grid-spacing 0;
        width: 100%;
+       table-layout: fixed;
 }
 .t3-grid-container {
        margin: 0px (@page-grid-spacing * -1) @line-height-computed;
index f01842f..eb2f7f0 100644 (file)
@@ -736,7 +736,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                 $rowCount = (int)$backendLayout['__config']['backend_layout.']['rowCount'];
                 $grid .= '<colgroup>';
                 for ($i = 0; $i < $colCount; $i++) {
-                    $grid .= '<col style="width:' . 100 / $colCount . '%"></col>';
+                    $grid .= '<col />';
                 }
                 $grid .= '</colgroup>';
                 // Cycle through rows
index 8f8ab32..23e8131 100644 (file)
@@ -12605,6 +12605,7 @@ iframe {
   border-collapse: separate;
   border-spacing: 10px 0;
   width: 100%;
+  table-layout: fixed;
 }
 .t3-grid-container {
   margin: 0px -10px 18px;