Files
Upsilon/apps/calculation/scrollable_expression_view.cpp
Ruben Dashyan 7a977f5689 [apps/calculation] Remove redundancy
In HistoryController::willDisplayCellForIndex, both setCalculation and
reloadCell end up calling ScrollableExpressionView::layoutSubviews.
Indeed, setCalculation calls setLayout over m_inputView, which in turn
calls layoutSubviews. It is logical to remove the first occurence.
2019-02-18 16:49:58 +01:00

23 lines
572 B
C++

#include "scrollable_expression_view.h"
#include <assert.h>
using namespace Poincare;
namespace Calculation {
ScrollableExpressionView::ScrollableExpressionView(Responder * parentResponder) :
ScrollableView(parentResponder, &m_expressionView, this),
m_expressionView()
{
}
void ScrollableExpressionView::setLayout(Layout layout) {
m_expressionView.setLayout(layout);
}
void ScrollableExpressionView::setBackgroundColor(KDColor backgroundColor) {
m_expressionView.setBackgroundColor(backgroundColor);
ScrollableView::setBackgroundColor(backgroundColor);
}
}