[apps/calculation] Fix rendering bug.

When powering off then on the device, the EditableExpressionView had a
rendering bug on the bottom left corner.

Change-Id: I1792831f949b8e646fff68b9e784c1ff573516fc
This commit is contained in:
Léa Saviot
2018-01-16 15:25:55 +01:00
parent 53556ffacf
commit 86b29f7e2f

View File

@@ -58,7 +58,7 @@ void EditExpressionController::ContentView::drawRect(KDContext * ctx, KDRect rec
// Draw the separator
ctx->fillRect(KDRect(0, bounds().height() -inputViewFrameHeight-k_separatorThickness, bounds().width(), k_separatorThickness), Palette::GreyMiddle);
// Color the left margin
ctx->fillRect(KDRect(0, bounds().height() -inputViewFrameHeight, k_leftMargin, k_textFieldHeight), m_textField.backgroundColor());
ctx->fillRect(KDRect(0, bounds().height() -inputViewFrameHeight, k_leftMargin, inputViewFrameHeight), m_textField.backgroundColor());
if (!editionIsInTextField()) {
// Color the upper margin
ctx->fillRect(KDRect(0, bounds().height() -inputViewFrameHeight, bounds().width(), k_verticalMargin), m_textField.backgroundColor());