mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[escher] Correct layout metrics
Change-Id: I829d387885af23be3782b99926c09547219ba6cc
This commit is contained in:
@@ -17,18 +17,16 @@ void TabViewController::ContentView::setActiveView(View * view) {
|
||||
}
|
||||
|
||||
void TabViewController::ContentView::layoutSubviews() {
|
||||
KDCoordinate tabHeight = 20;
|
||||
|
||||
KDRect tabViewFrame = KDRect(
|
||||
0, 0,
|
||||
m_frame.width(), tabHeight
|
||||
m_frame.width(), k_tabHeight
|
||||
);
|
||||
m_tabView.setFrame(tabViewFrame);
|
||||
if (m_activeView) {
|
||||
KDRect activeViewFrame = KDRect(
|
||||
0, tabHeight,
|
||||
0, k_tabHeight,
|
||||
m_frame.width(),
|
||||
m_frame.height() - tabHeight
|
||||
m_frame.height() - k_tabHeight
|
||||
);
|
||||
m_activeView->setFrame(activeViewFrame);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user