Skip to content

Commit 4f8c1a6

Browse files
committed
1 parent 76795a0 commit 4f8c1a6

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

app/code/Magento/Ui/Component/Form/Element/Multiselect.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Ui\Component\Form\Element;
78

8-
/**
9-
* Class Multiselect
10-
*/
11-
class Multiselect extends Select
9+
class MultiSelect extends Select
1210
{
1311
const NAME = 'multiselect';
12+
13+
const DEFAULT_SIZE = 6;
14+
15+
/**
16+
* @inheritDoc
17+
*/
18+
public function prepare()
19+
{
20+
$config['size'] = self::DEFAULT_SIZE;
21+
$this->setData('config', array_replace_recursive((array)$this->getData('config'), $config));
22+
parent::prepare();
23+
}
1424
}

0 commit comments

Comments
 (0)