Move background to ScrollView for GcodeTextArea

This commit is contained in:
Lipu Fei 2019-05-14 11:43:24 +02:00
parent 5280ec4af5
commit d1805d34be

View file

@ -53,19 +53,6 @@ UM.TooltipArea
anchors.left: parent.left
anchors.right: parent.right
TextArea
{
id: gcodeTextArea
hoverEnabled: true
selectByMouse: true
text: (propertyProvider.properties.value) ? propertyProvider.properties.value : ""
font: UM.Theme.getFont("fixed")
renderType: Text.NativeRendering
color: UM.Theme.getColor("text")
wrapMode: TextEdit.NoWrap
background: Rectangle
{
color: UM.Theme.getColor("main_background")
@ -85,6 +72,19 @@ UM.TooltipArea
}
}
TextArea
{
id: gcodeTextArea
hoverEnabled: true
selectByMouse: true
text: (propertyProvider.properties.value) ? propertyProvider.properties.value : ""
font: UM.Theme.getFont("fixed")
renderType: Text.NativeRendering
color: UM.Theme.getColor("text")
wrapMode: TextEdit.NoWrap
onActiveFocusChanged:
{
if (!activeFocus)