From 0cec3490744b7a69321ef8c1b7f281e5fb0e014c Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 12 Dec 2012 04:32:55 +0100 Subject: [PATCH] Save dialog: Fix too-wide diff box. The rules have changed, these constraints are no longer needed and actually causing the table.diff to ignore the restrictions and bump out of the container beyond the width of the window. This restores the condition under which table.diff is displayed by core EditPage.php. Follows-up I5f59482f4db. Change-Id: I456644bf14efab7dac351818d5c3bb69b9b3c993 --- modules/ve/init/mw/styles/ve.init.mw.ViewPageTarget.css | 3 --- modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/ve/init/mw/styles/ve.init.mw.ViewPageTarget.css b/modules/ve/init/mw/styles/ve.init.mw.ViewPageTarget.css index 7016d6d4ef..0e6b5762a7 100644 --- a/modules/ve/init/mw/styles/ve.init.mw.ViewPageTarget.css +++ b/modules/ve/init/mw/styles/ve.init.mw.ViewPageTarget.css @@ -259,7 +259,6 @@ .ve-init-mw-viewPageTarget-saveDialog-body { border-top: 1px solid #ddd; padding-top: 1em; - overflow: hidden; } .ve-init-mw-viewPageTarget-saveDialog-slide { @@ -275,8 +274,6 @@ } .ve-init-mw-viewPageTarget-saveDialog-slide-review .ve-init-mw-viewPageTarget-saveDialog-viewer .diff { - width: auto; - table-layout: auto; font-size: 0.8em; } diff --git a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js index 8ed546c90d..55e2af7266 100644 --- a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js @@ -1219,7 +1219,7 @@ ve.init.mw.ViewPageTarget.prototype.swapSaveDialog = function ( slide ) { ); } } - this.$saveDialog.css( 'width', 'auto' ); + this.$saveDialog.css( 'width', '100%' ); } else { this.$saveDialog.css( 'width', '' ); }