mw.widgets.datetime.DateTimeInputWidget: Increase width
authorPrateek Saxena <prtksxna@gmail.com>
Tue, 15 May 2018 08:41:35 +0000 (14:11 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Wed, 16 May 2018 00:34:02 +0000 (06:04 +0530)
The condition to add extra width for 'strings' was already there
but was putting the same value for both. Increased from 1.15 to
1.25 per character for strings.

Bug: T193907
Change-Id: I474a8a84756d7222a47ef9d4f2d4b50050c4e20e

resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js

index 05180fd..17f1fb4 100644 (file)
                                sz = ( spec.size * 1.15 ) + 'ch';
                        } else {
                                // Add a little for padding
-                               sz = ( spec.size * 1.15 ) + 'ch';
+                               sz = ( spec.size * 1.25 ) + 'ch';
                        }
                        if ( spec.editable && spec.type !== 'static' ) {
                                if ( spec.type === 'boolean' || spec.type === 'toggleLocal' ) {