Commit bfd820d1 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

baby_wordprocessor, fix cursor size and layout with virtual keyboard

parent 45bddd71
......@@ -45,9 +45,11 @@ ActivityBase {
id: flick
anchors {
fill: parent
left: parent.left
right: parent.right
top: parent.top
bottom: bar.top
margins: 10
bottomMargin: bar.height
}
contentWidth: edit.paintedWidth
contentHeight: edit.paintedHeight
......@@ -69,7 +71,7 @@ ActivityBase {
id: edit
width: flick.width
height: flick.height
focus: true // FIXME: can get the focus when we enter the activity
focus: true
wrapMode: TextEdit.Wrap
onCursorRectangleChanged: flick.ensureVisible(cursorRectangle)
font {
......@@ -81,7 +83,6 @@ ActivityBase {
}
cursorDelegate: Rectangle {
width: 10
height: 10
color: 'red'
}
function insertText(text) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment