mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
scroll to the size of the content view Change-Id: I2c4aa457425bf5a8a484aecc061ae27453e9aabb
27 lines
710 B
C++
27 lines
710 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::setExpression(ExpressionLayout * expressionLayout) {
|
|
m_expressionView.setExpression(expressionLayout);
|
|
layoutSubviews();
|
|
}
|
|
|
|
void ScrollableExpressionView::setBackgroundColor(KDColor backgroundColor) {
|
|
m_expressionView.setBackgroundColor(backgroundColor);
|
|
}
|
|
|
|
KDSize ScrollableExpressionView::minimalSizeForOptimalDisplay() const {
|
|
return m_expressionView.minimalSizeForOptimalDisplay();
|
|
}
|
|
|
|
}
|