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:
Rob Moen 2012-07-25 12:40:56 -07:00
parent d9a2a9a181
commit 5a41f77b99

View file

@ -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'
} );
};