From: Bartosz DziewoƄski Date: Mon, 18 Jan 2016 16:48:33 +0000 (+0100) Subject: HTMLFormField: Use 'align' => 'top' when wrapping legacy stuff in OOUI FieldLayout X-Git-Tag: 1.31.0-rc.0~8269^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=bedf92248c6dbf3b339a2a9e0220850b4d1aaa85;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ) ); }