HTMLFormField: Use 'align' => 'top' when wrapping legacy stuff in OOUI FieldLayout
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 18 Jan 2016 16:48:33 +0000 (17:48 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 18 Jan 2016 16:48:33 +0000 (17:48 +0100)
Otherwise, it defaults to 'left', which limits the width of the field
to 60%, which is silly.

Change-Id: I89e64e03cf9bd48a02ce5eebb7f329407916d79b

includes/htmlform/HTMLFormField.php

index 3d9ec1f..3ba2156 100644 (file)
@@ -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' )
                        );
                }