From bd36680d217c79410868c67ede61cc74947a65d4 Mon Sep 17 00:00:00 2001 From: Thalia Date: Wed, 25 Nov 2015 14:14:00 -0800 Subject: [PATCH] Ensure the formula preview in MathDialog is vertically centered The formula preview is not centered when the display attribute is set to block. Correct this by enforcing display: inline-block when the math image is inside the preview element. Bug: T119670 Change-Id: I77d9b213a31d3005212c8c11874112ddb64aa74a --- modules/ve-math/ve.ui.MWMathDialog.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ve-math/ve.ui.MWMathDialog.css b/modules/ve-math/ve.ui.MWMathDialog.css index 7098c57..00bbe1b 100644 --- a/modules/ve-math/ve.ui.MWMathDialog.css +++ b/modules/ve-math/ve.ui.MWMathDialog.css @@ -70,6 +70,11 @@ height: 10em; } +/* Ensures the preview image is vertically centred */ +.ve-ui-mwMathDialog-preview .mwe-math-fallback-image-display { + display: inline-block; +} + .ve-ui-mwMathPage-outline { padding: 0.5em; color: #555;