aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-12-08 00:11:32 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-12-08 00:11:32 +0100
commit5efb145cb65abfa28d9efe1553b99c1d107ddbfc (patch)
tree5ffbd4b87b04d1165d315c95be322e492d0b5206
parent0a22b340e9f529aa0077c39a056a2c84ac7b1ebb (diff)
downloadsubsurface-5efb145cb65abfa28d9efe1553b99c1d107ddbfc.tar.gz
Fix text wrapping in log viewer
Apparently, the width setting got lost in the previous change. This sets the width of the log text explicitely to the grandparent's width. It fixes text clipping in the log window. Signed-off-by: Sebastian Kügler <sebas@kde.org>
-rw-r--r--qt-mobile/qml/Log.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-mobile/qml/Log.qml b/qt-mobile/qml/Log.qml
index 9e29a4d00..f49e3ba73 100644
--- a/qt-mobile/qml/Log.qml
+++ b/qt-mobile/qml/Log.qml
@@ -21,13 +21,15 @@ MobileComponents.Page {
contentHeight: logContent.height
clip: true
ColumnLayout {
+ width: logFlick.width
spacing: MobileComponents.Units.smallSpacing
MobileComponents.Heading {
text: "Application Log"
}
MobileComponents.Label {
id: logContent
- width: logFlick.width
+ Layout.preferredWidth: parent.width
+ Layout.maximumWidth: parent.width
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
text: manager.logText
}