diff --git a/meshroom/ui/qml/GraphEditor/ScriptEditor.qml b/meshroom/ui/qml/GraphEditor/ScriptEditor.qml
index 91612abe0e..e00df208d0 100644
--- a/meshroom/ui/qml/GraphEditor/ScriptEditor.qml
+++ b/meshroom/ui/qml/GraphEditor/ScriptEditor.qml
@@ -51,7 +51,7 @@ Item {
*/
// Replace the text to be RichText Supportive
- return "" + replace(text, "\n", "
") + "
"
+ return "> Input:
" + replace(text, "\n", "
") + "
"
}
function formatOutput(text) {
@@ -60,7 +60,7 @@ Item {
*/
// Replace the text to be RichText Supportive
- return "" + "Result: " + replace(text, "\n", "
") + "
"
+ return "> Result:
" + replace(text, "\n", "
") + "
"
}
function clearHistory() {
@@ -295,7 +295,7 @@ Item {
width: parent.width
height: parent.height
contentWidth: width
- contentHeight: ( input.lineCount + 5 ) * input.font.pixelSize // + 5 lines for buffer to be scrolled and visibility
+ contentHeight: input.contentHeight;
anchors.left: lineNumbers.right
anchors.top: parent.top
@@ -348,7 +348,7 @@ Item {
width: parent.width
height: parent.height
contentWidth: width
- contentHeight: ( output.lineCount + 5 ) * output.font.pixelSize // + 5 lines for buffer to be scrolled and visibility
+ contentHeight: output.contentHeight;
ScrollBar.vertical: MScrollBar {}