[BUGFIX] Some TCEforms elements are displaced
authorFrancois Suter <francois@typo3.org>
Wed, 17 Aug 2011 08:50:55 +0000 (10:50 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 21 Aug 2011 18:19:58 +0000 (20:19 +0200)
When a TCEforms field is part of a palette, a specific span tag
is added around it. A similar span tag must be added around fields
which are not part of a palette, so that we have similar behaviors.

Change-Id: If13c130423c4839b89c7f03e015feffd8ae3bd94
Resolves: #29029
Related: #28030
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/4389
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
typo3/sysext/t3skin/stylesheets/structure/element_tceforms.css
typo3/templates/tceforms.html

index 0bbb1ab..6e357ad 100644 (file)
@@ -191,6 +191,7 @@ table.typo3-TCEforms .class-main53 {
 
 table.typo3-TCEforms td.formField-header,
 table.typo3-TCEforms td.formField-field {
+       display: block;
        position: relative;
        padding-left: 10px;
        padding-right: 10px;
@@ -280,6 +281,10 @@ table.typo3-TCEforms span.filetypes {
        width: 250px;
 }
 
+.t3-form-field-container {
+       display: block;
+}
+
 .typo3-TCEforms-palette .typo3-csh-link img {
        padding-top: 3px;
        vertical-align: top;
index 26b2602..5acac3c 100644 (file)
@@ -15,7 +15,7 @@
        <td colspan="2" class="formField-header"><span style="color:###FONTCOLOR_HEAD###;"###CLASSATTR_4###><strong>###FIELD_NAME###</strong></span></td>
 </tr>
 <tr ###BGCOLOR######CLASSATTR_1###>
-       <td colspan="2" class="formField-field" valign="top"><img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-contentchangedImg" alt="" /><img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-reqImg" alt="" />###FIELD_ITEM######FIELD_PAL_LINK_ICON###</td>
+       <td colspan="2" class="formField-field" valign="top"><span class="t3-form-field-container"><img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-contentchangedImg" alt="" /><img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" class="t3-TCEforms-reqImg" alt="" />###FIELD_ITEM######FIELD_PAL_LINK_ICON###</span></td>
 </tr>
 <!-- ###FIELDTEMPLATE### end -->