[BUGFIX] Fix height of tree element if no size is defined 28/49828/5
authorSascha Egerer <sascha@sascha-egerer.de>
Sat, 3 Sep 2016 10:48:25 +0000 (12:48 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 3 Sep 2016 13:56:53 +0000 (15:56 +0200)
If the select tree tca element has no size defined it's using a
fallback value. The fallback for the size is currently 280 and should
be lower.

Resolves: #77827
Releases: master
Change-Id: I7efe201bd317b94daceefc650ad5a1e0987b1d52
Reviewed-on: https://review.typo3.org/49828
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/Form/Element/SelectTreeElement.php

index 053356b..a0b9fe8 100644 (file)
@@ -31,7 +31,7 @@ class SelectTreeElement extends AbstractFormElement
      *
      * @var int
      */
-    protected $itemsToShow = 280;
+    protected $itemsToShow = 15;
 
     /**
      * Number of items to show at last
@@ -39,7 +39,7 @@ class SelectTreeElement extends AbstractFormElement
      *
      * @var int
      */
-    protected $minItemsToShow = 10;
+    protected $minItemsToShow = 5;
 
     /**
      * Pixel height of a single tree node