Solved clipping of the scrollbar on different textareas
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -82,18 +82,6 @@ Window {
|
||||
}
|
||||
}
|
||||
|
||||
function contentChanged() {
|
||||
if (listView.currentIndex !== -1) {
|
||||
myModel.set(
|
||||
listView.currentIndex,
|
||||
{
|
||||
'name': nameField.text,
|
||||
'description': descriptionField.text,
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
function lockMenu(toggle) {
|
||||
if (toggle) {
|
||||
openButton.enabled = false
|
||||
@@ -236,16 +224,18 @@ Window {
|
||||
}
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
Layout.fillHeight: true
|
||||
Flickable {
|
||||
Layout.fillWidth: true
|
||||
ScrollBar.vertical.interactive: true
|
||||
|
||||
TextArea {
|
||||
Layout.fillHeight: true
|
||||
TextArea.flickable: TextArea {
|
||||
id: newDescriptionField
|
||||
placeholderText: qsTr("Description")
|
||||
font.pointSize: 10
|
||||
wrapMode: TextEdit.WordWrap
|
||||
}
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
width: 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,16 +283,18 @@ Window {
|
||||
}
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
Layout.fillHeight: true
|
||||
Flickable {
|
||||
Layout.fillWidth: true
|
||||
ScrollBar.vertical.interactive: true
|
||||
|
||||
TextArea {
|
||||
Layout.fillHeight: true
|
||||
TextArea.flickable: TextArea {
|
||||
id: editDescriptionField
|
||||
placeholderText: qsTr("Description")
|
||||
font.pointSize: 10
|
||||
wrapMode: TextEdit.WordWrap
|
||||
}
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
width: 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -446,9 +438,7 @@ Window {
|
||||
id: nameField
|
||||
Layout.fillWidth: true
|
||||
placeholderText: qsTr("Name")
|
||||
onTextChanged: {
|
||||
contentChanged()
|
||||
}
|
||||
readOnly: true
|
||||
}
|
||||
|
||||
TextField {
|
||||
@@ -458,18 +448,18 @@ Window {
|
||||
readOnly: true
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
Flickable {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
ScrollBar.vertical.interactive: true
|
||||
|
||||
TextArea {
|
||||
TextArea.flickable: TextArea {
|
||||
id: descriptionField
|
||||
wrapMode: TextEdit.WordWrap
|
||||
placeholderText: qsTr("Description")
|
||||
readOnly: true
|
||||
font.pointSize: 10
|
||||
onTextChanged: {
|
||||
contentChanged()
|
||||
}
|
||||
wrapMode: TextEdit.WordWrap
|
||||
}
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
width: 10
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -154,17 +154,18 @@ Window {
|
||||
}
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
Flickable {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: 5
|
||||
Layout.fillHeight: true
|
||||
ScrollBar.vertical.interactive: true
|
||||
|
||||
TextArea {
|
||||
Layout.topMargin: 5
|
||||
TextArea.flickable: TextArea {
|
||||
id: paramDescription
|
||||
placeholderText: qsTr("Description")
|
||||
wrapMode: TextEdit.WordWrap
|
||||
font.pointSize: 10
|
||||
wrapMode: TextEdit.WordWrap
|
||||
}
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
width: 10
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -573,19 +573,21 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
Flickable {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: 5
|
||||
Layout.fillHeight: true
|
||||
ScrollBar.vertical.interactive: true
|
||||
|
||||
TextArea {
|
||||
Layout.topMargin: 5
|
||||
TextArea.flickable: TextArea {
|
||||
id: descriptionTextArea
|
||||
placeholderText: qsTr("Description")
|
||||
font.pointSize: 10
|
||||
wrapMode: TextEdit.WordWrap
|
||||
textFormat: Text.MarkdownText
|
||||
font.pointSize: 10
|
||||
readOnly: true
|
||||
}
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
width: 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user