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>
This commit is contained in:
Sebastian Kügler 2015-12-08 00:11:32 +01:00
parent 0a22b340e9
commit 5efb145cb6

View file

@ -21,13 +21,15 @@ MobileComponents.Page {
contentHeight: logContent.height contentHeight: logContent.height
clip: true clip: true
ColumnLayout { ColumnLayout {
width: logFlick.width
spacing: MobileComponents.Units.smallSpacing spacing: MobileComponents.Units.smallSpacing
MobileComponents.Heading { MobileComponents.Heading {
text: "Application Log" text: "Application Log"
} }
MobileComponents.Label { MobileComponents.Label {
id: logContent id: logContent
width: logFlick.width Layout.preferredWidth: parent.width
Layout.maximumWidth: parent.width
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
text: manager.logText text: manager.logText
} }