BG fixes for COntainer
This commit is contained in:
@@ -125,15 +125,16 @@ use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
foreach (['top', 'bottom', 'left', 'right'] as $edge) {
|
||||
$positionOffsets['tx_vitec_bg_pos_' . $edge] = [
|
||||
'label' => $l . 'bg_pos.' . $edge,
|
||||
'description' => $l . 'bg_pos.description',
|
||||
'displayCond' => 'FIELD:tx_vitec_bg_position:=:custom',
|
||||
'config' => [
|
||||
'type' => 'number',
|
||||
'size' => 5,
|
||||
'nullable' => true,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 100,
|
||||
],
|
||||
// No range on purpose: background-position accepts values below
|
||||
// 0 and above 100, which is how you push an image partly out of
|
||||
// its container. Capping at 0..100 would forbid exactly the
|
||||
// layouts these free offsets exist for.
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user