From a90d5c4d382e769ab777cf1841170207deff164b Mon Sep 17 00:00:00 2001 From: waaake Date: Wed, 8 Jan 2025 09:47:37 +0530 Subject: [PATCH] [ui] ScriptEditor: Updated the content width of the input and output flickables Formatted the input and output text for output display text area --- meshroom/ui/qml/GraphEditor/ScriptEditor.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {}