Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Use ListView.view.width to set the text property base width.

Wolthera van Hövell tot Westerflier23991a189e17
diff --git a/plugins/dockers/textproperties/qml/TextPropertyBase.qml b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
index 2f71ca895d..4a290980cc 100644
--- a/plugins/dockers/textproperties/qml/TextPropertyBase.qml
+++ b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
@@ -12,7 +12,7 @@ Column {
property int firstColumnWidth: 32;
property int columnSpacing: 5;
padding: columnSpacing;
- width: parent && typeof parent !== 'undefined'? parent.width - (padding * 2): 100;
+ width: ListView.view? ListView.view.width - (padding * 2): 100;
height: visible? implicitHeight: 0;
property KoSvgTextPropertiesModel properties : textPropertiesModel;