From bedf92248c6dbf3b339a2a9e0220850b4d1aaa85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 18 Jan 2016 17:48:33 +0100 Subject: [PATCH] HTMLFormField: Use 'align' => 'top' when wrapping legacy stuff in OOUI FieldLayout Otherwise, it defaults to 'left', which limits the width of the field to 60%, which is silly. Change-Id: I89e64e03cf9bd48a02ce5eebb7f329407916d79b --- includes/htmlform/HTMLFormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 3d9ec1f51f..3ba2156022 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -587,7 +587,7 @@ abstract class HTMLFormField { // It might look weird, but it'll work OK. return $this->getFieldLayoutOOUI( new OOUI\Widget( array( 'content' => new OOUI\HtmlSnippet( $this->getDiv( $value ) ) ) ), - array( 'infusable' => false ) + array( 'infusable' => false, 'align' => 'top' ) ); } -- 2.20.1