[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:
Léa Saviot
2017-11-20 11:14:08 +01:00
parent 2aa1cb0256
commit a9f4da92c0
11 changed files with 93 additions and 14 deletions

View File

@@ -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));