mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[code/python] Fixed the Kandinsky module in Python.
User can draw on the 320*220 drawing screen. Change-Id: I25034b05f21aacc35608358fdb7a4d9924dd22e8
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "apps_window.h"
|
||||
#include <escher/metric.h>
|
||||
extern "C" {
|
||||
#include <assert.h>
|
||||
}
|
||||
@@ -54,7 +55,7 @@ View * AppsWindow::subviewAtIndex(int index) {
|
||||
}
|
||||
|
||||
void AppsWindow::layoutSubviews() {
|
||||
KDCoordinate titleHeight = m_hideTitleBarView ? 0 : k_titleBarHeight;
|
||||
KDCoordinate titleHeight = m_hideTitleBarView ? 0 : Metric::TitleBarHeight;
|
||||
m_titleBarView.setFrame(KDRect(0, 0, bounds().width(), titleHeight));
|
||||
if (m_contentView != nullptr) {
|
||||
m_contentView->setFrame(KDRect(0, titleHeight, bounds().width(), bounds().height()-titleHeight));
|
||||
|
||||
Reference in New Issue
Block a user