mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 16:50:50 +01:00
Fix HistoryViewCell and ScrollableExactApproximateExxpressionsCell margins issue
Remove all margins from those cells. Rather add margins to their respective subviews: - ScrollableExpressionView - ScrollableExactApproximateExpressionsView. As a notable consequence, the distance in HistoryViewCell between its subviews becomes 10 instead of 5. In passing, replace - Metric::HistoryHorizontalMargin = 10 - ScrollableExactApproximateExpressionsView::k_digitHorizontalMargin = 10 - HistoryViewCell::k_digitVerticalMargin = 5 - ScrollableExactApproximateExpressionsCell::k_margin = 5 by - Metric::CommonSmallMargin = 5 - Metric::CommonLargeMargin = 10.
This commit is contained in:
committed by
EmilieNumworks
parent
571967088e
commit
0943406263
@@ -220,7 +220,7 @@ KDCoordinate SolutionsController::rowHeight(int j) {
|
||||
KDCoordinate exactLayoutHeight = exactLayout.layoutSize().height();
|
||||
KDCoordinate approximateLayoutHeight = approximateLayout.layoutSize().height();
|
||||
KDCoordinate layoutHeight = max(exactLayout.baseline(), approximateLayout.baseline()) + max(exactLayoutHeight-exactLayout.baseline(), approximateLayoutHeight-approximateLayout.baseline());
|
||||
return layoutHeight+ScrollableExactApproximateExpressionsCell::k_margin*2;
|
||||
return layoutHeight + 2 * Metric::CommonSmallMargin;
|
||||
}
|
||||
|
||||
KDCoordinate SolutionsController::cumulatedWidthFromIndex(int i) {
|
||||
|
||||
Reference in New Issue
Block a user