mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Bug 38655 - VisualEditor: White box syndrome strikes back!
-Hide / show inspector with visibility vs display property for iframe cross browser compatibility. Change-Id: Ibdd0250872c42d74d6ff7d22abdf9d838962acc1
This commit is contained in:
parent
d9a2a9a181
commit
5a41f77b99
|
@ -258,14 +258,16 @@ ve.ui.Context.prototype.addInspector = function( name, inspector ) {
|
|||
ve.ui.Context.prototype.hideInspectorFrame = function ( inspector ) {
|
||||
this.$inspectors.css({
|
||||
'width': 0,
|
||||
'height': 0
|
||||
'height': 0,
|
||||
'visibility': 'hidden'
|
||||
});
|
||||
};
|
||||
|
||||
ve.ui.Context.prototype.resizeInspectorFrame = function( inspector ){
|
||||
this.$inspectors.css( {
|
||||
'width': inspector.$.outerWidth( true ) + 10,
|
||||
'height': inspector.$.outerHeight( true ) + 10
|
||||
'height': inspector.$.outerHeight( true ) + 10,
|
||||
'visibility': 'visible'
|
||||
} );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue