From 5a41f77b9962ea0e8fff4be4bfbbcb46f3861c99 Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Wed, 25 Jul 2012 12:40:56 -0700 Subject: [PATCH] Bug 38655 - VisualEditor: White box syndrome strikes back! -Hide / show inspector with visibility vs display property for iframe cross browser compatibility. Change-Id: Ibdd0250872c42d74d6ff7d22abdf9d838962acc1 --- modules/ve/ui/ve.ui.Context.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ve/ui/ve.ui.Context.js b/modules/ve/ui/ve.ui.Context.js index ced6027ca8..84d57eda61 100644 --- a/modules/ve/ui/ve.ui.Context.js +++ b/modules/ve/ui/ve.ui.Context.js @@ -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' } ); };