mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[apps] Settings: clean number of rows
This commit is contained in:
committed by
EmilieNumworks
parent
098c7dd9f4
commit
9dd637f7c3
@@ -3,6 +3,7 @@ extern "C" {
|
||||
}
|
||||
#include <escher/stack_view_controller.h>
|
||||
#include <escher/app.h>
|
||||
#include <escher/metric.h>
|
||||
|
||||
StackViewController::ControllerView::ControllerView() :
|
||||
View(),
|
||||
@@ -39,15 +40,15 @@ void StackViewController::ControllerView::layoutSubviews() {
|
||||
KDCoordinate width = m_frame.width();
|
||||
if (m_displayStackHeaders) {
|
||||
for (int i=0; i<m_numberOfStacks; i++) {
|
||||
m_stackViews[i].setFrame(KDRect(0, k_stackHeight*i, width, k_stackHeight + 1));
|
||||
m_stackViews[i].setFrame(KDRect(0, Metric::StackTitleHeight*i, width, Metric::StackTitleHeight + 1));
|
||||
}
|
||||
}
|
||||
if (m_contentView) {
|
||||
KDCoordinate separatorHeight = m_numberOfStacks > 0 ? 1 : 0;
|
||||
KDRect contentViewFrame = KDRect( 0,
|
||||
m_displayStackHeaders * (m_numberOfStacks * k_stackHeight + separatorHeight),
|
||||
m_displayStackHeaders * (m_numberOfStacks * Metric::StackTitleHeight + separatorHeight),
|
||||
width,
|
||||
m_frame.height() - m_displayStackHeaders * m_numberOfStacks * k_stackHeight);
|
||||
m_frame.height() - m_displayStackHeaders * m_numberOfStacks * Metric::StackTitleHeight);
|
||||
m_contentView->setFrame(contentViewFrame);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user