Remove display:inline-block highlight hacks

With getClientRects these are no longer necessary.

Depends on I09f1c0850 in core.

Bug: 51708
Change-Id: I7e6c6528f4dd23aee7fa61ecb38eb658e11a8356
This commit is contained in:
Ed Sanders 2014-06-16 11:52:37 +01:00
parent 1c0f331c70
commit 15bbcc6d63
4 changed files with 11 additions and 16 deletions

View file

@ -1170,7 +1170,6 @@ $wgResourceModules += array(
'modules/ve-mw/ui/tools/ve.ui.MWGalleryInspectorTool.js',
),
'styles' => array(
'modules/ve-mw/ce/styles/nodes/ve.ce.MWGalleryNode.css',
'modules/ve-mw/ui/styles/inspectors/ve.ui.MWGalleryInspector.css',
),
'dependencies' => array(

View file

@ -35,6 +35,17 @@ ve.ce.MWGalleryNode.static.tagName = 'div';
ve.ce.MWGalleryNode.static.primaryCommandName = 'gallery';
/* Methods */
/**
* @inheritdoc
*/
ve.ce.MWGalleryNode.prototype.onSetup = function () {
ve.ce.MWGalleryNode.super.prototype.onSetup.apply( this, arguments );
// The ul.gallery is 100% width, so don't give it a highlight
this.$element.find( '.gallery' ).addClass( 've-ce-noHighlight' );
};
/* Registration */
ve.ce.nodeFactory.register( ve.ce.MWGalleryNode );

View file

@ -1,11 +0,0 @@
/*!
* VisualEditor ContentEditable MediaWiki MWGalleryNode styles.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ce-mwGalleryNode .mw-gallery-traditional {
/* Use inline-block to avoid over-sized shields */
display: inline-block
}

View file

@ -5,10 +5,6 @@
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ce-mwTransclusionInlineNode {
display: inline-block;
}
/* HACK: Hide Ref errors in templates */
.ve-ce-mwTransclusionNode .mw-ext-cite-error {
display: none;