mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[shared] Add a margin to ScrollableExactApproximateExpressionsCell
This commit is contained in:
@@ -12,9 +12,11 @@ ScrollableExactApproximateExpressionsCell::ScrollableExactApproximateExpressions
|
||||
|
||||
void ScrollableExactApproximateExpressionsCell::setHighlighted(bool highlight) {
|
||||
m_view.evenOddCell()->setHighlighted(highlight);
|
||||
reloadScroll();
|
||||
}
|
||||
|
||||
void ScrollableExactApproximateExpressionsCell::setEven(bool even) {
|
||||
EvenOddCell::setEven(even);
|
||||
m_view.evenOddCell()->setEven(even);
|
||||
}
|
||||
|
||||
@@ -39,7 +41,7 @@ View * ScrollableExactApproximateExpressionsCell::subviewAtIndex(int index) {
|
||||
}
|
||||
|
||||
void ScrollableExactApproximateExpressionsCell::layoutSubviews() {
|
||||
m_view.setFrame(bounds());
|
||||
m_view.setFrame(KDRect(k_margin,k_margin, bounds().width()-2*k_margin, bounds().height()-2*k_margin));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
return this;
|
||||
}
|
||||
void didBecomeFirstResponder() override;
|
||||
constexpr static KDCoordinate k_margin = 5;
|
||||
private:
|
||||
int numberOfSubviews() const override;
|
||||
View * subviewAtIndex(int index) override;
|
||||
|
||||
Reference in New Issue
Block a user