mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 16:50:50 +01:00
[escher/poincare] Coding style
This commit is contained in:
@@ -81,8 +81,16 @@ void ScrollView::scrollToContentPoint(KDPoint p, bool allowOverscroll) {
|
||||
|
||||
// Handle cases when the size of the view has decreased.
|
||||
setContentOffset(KDPoint(
|
||||
std::min(contentOffset().x(), std::max<KDCoordinate>(minimalSizeForOptimalDisplay().width() - bounds().width(), KDCoordinate{0})),
|
||||
std::min(contentOffset().y(), std::max<KDCoordinate>(minimalSizeForOptimalDisplay().height() - bounds().height(), 0))));
|
||||
std::min(
|
||||
contentOffset().x(),
|
||||
std::max<KDCoordinate>(
|
||||
minimalSizeForOptimalDisplay().width() - bounds().width(),
|
||||
KDCoordinate(0))),
|
||||
std::min(
|
||||
contentOffset().y(),
|
||||
std::max<KDCoordinate>(
|
||||
minimalSizeForOptimalDisplay().height() - bounds().height(),
|
||||
KDCoordinate(0)))));
|
||||
}
|
||||
|
||||
void ScrollView::scrollToContentRect(KDRect rect, bool allowOverscroll) {
|
||||
|
||||
Reference in New Issue
Block a user