It seems that this property is not actually used. The default thumb size
is also loaded in MediaResourceProvider by querying the meta=siteinfo API.
Bug: T219675
Change-Id: I42610a2ac1ba6b19f08ee9fc9a8fd4aa23e090a7
this.calculateSizing( this.data );
- // Get wiki default thumbnail size
- // FIXME: Now this code is in core it definitely should not depend
- // on a VE config variable.
- this.defaultThumbSize = mw.config.get( 'wgVisualEditorConfig' )
- .thumbLimits[ mw.user.options.get( 'thumbsize' ) ];
-
// Initialization
this.setLabel( new mw.Title( this.data.title ).getNameText() );
this.$label.addClass( 'mw-widget-mediaResultWidget-nameLabel' );