Fix mediawiki.ui.checkbox loading in mobile
authorFlorianschmidtwelzow <florian.schmidt.welzow@t-online.de>
Mon, 18 Aug 2014 17:21:42 +0000 (19:21 +0200)
committerFlorianschmidtwelzow <florian.schmidt.welzow@t-online.de>
Mon, 18 Aug 2014 17:21:42 +0000 (19:21 +0200)
* mwui checkboxes can load on mobile, too

* mwui should have position on top to load before the content is rendered

Follow up: I6a0db7c8ce33d242120f1cba9222db4e2154696c
and I89d80927d603407678182592a1b12e2132de4141

Change-Id: I8222610aa714f7e422acaa3c3041c41f817eab7d

resources/Resources.php

index 5b6a11d..4a1c86b 100644 (file)
@@ -1459,6 +1459,8 @@ return array(
                'styles' => array(
                        'resources/src/mediawiki.ui/components/checkbox.less',
                ),
+               'position' => 'top',
+               'targets' => array( 'desktop', 'mobile' ),
        ),
        // Lightweight module for anchor styles
        'mediawiki.ui.anchor' => array(