Composer scrollbar: invisible unless really needed
This commit is contained in:
parent
66129a9eb2
commit
a6b154c207
|
@ -2,15 +2,18 @@ import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
|
id: scrollView
|
||||||
|
clip: true
|
||||||
|
ScrollBar.vertical.visible: contentHeight > height
|
||||||
|
|
||||||
|
|
||||||
|
default property alias textAreaData: textArea.data
|
||||||
|
|
||||||
property alias backgroundColor: textAreaBackground.color
|
property alias backgroundColor: textAreaBackground.color
|
||||||
property alias placeholderText: textArea.placeholderText
|
property alias placeholderText: textArea.placeholderText
|
||||||
property alias text: textArea.text
|
property alias text: textArea.text
|
||||||
property alias area: textArea
|
property alias area: textArea
|
||||||
|
|
||||||
default property alias textAreaData: textArea.data
|
|
||||||
|
|
||||||
id: scrollView
|
|
||||||
clip: true
|
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
id: textArea
|
id: textArea
|
||||||
|
|
|
@ -63,16 +63,16 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
HScrollableTextArea {
|
HScrollableTextArea {
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.topMargin: Math.max(0, composer.Layout.minimumHeight - 34)
|
|
||||||
|
|
||||||
id: areaScrollView
|
id: areaScrollView
|
||||||
placeholderText: qsTr("Type a message...")
|
placeholderText: qsTr("Type a message...")
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
area.tabStopDistance: 4 * 4 // 4 spaces
|
area.tabStopDistance: 4 * 4 // 4 spaces
|
||||||
area.focus: true
|
area.focus: true
|
||||||
|
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
|
||||||
function setTyping(typing) {
|
function setTyping(typing) {
|
||||||
py.callClientCoro(
|
py.callClientCoro(
|
||||||
writingUserId,
|
writingUserId,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user