Use new scrollbars for scrollviews (ie text areas)
This commit is contained in:
parent
783a711799
commit
ae37e13c6e
16
src/gui/Base/HScrollView.qml
Normal file
16
src/gui/Base/HScrollView.qml
Normal file
|
@ -0,0 +1,16 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
|
||||
ScrollView {
|
||||
id: scrollView
|
||||
|
||||
ScrollBar.vertical: HScrollBar {
|
||||
parent: scrollView
|
||||
x: scrollView.mirrored ? 0 : scrollView.width - width
|
||||
y: scrollView.topPadding
|
||||
height: scrollView.availableHeight
|
||||
active: scrollView.ScrollBar.horizontal.active
|
||||
}
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../../Base"
|
||||
|
||||
|
@ -38,7 +37,7 @@ Rectangle {
|
|||
""
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
HScrollView {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ HFlickableColumnPage {
|
|||
|
||||
Layout.fillWidth: true
|
||||
|
||||
ScrollView {
|
||||
HScrollView {
|
||||
clip: true
|
||||
width: parent.width
|
||||
height:
|
||||
|
|
|
@ -61,7 +61,7 @@ BoxPopup {
|
|||
property var failedInvites: []
|
||||
|
||||
|
||||
ScrollView {
|
||||
HScrollView {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ BoxPopup {
|
|||
property string traceback: ""
|
||||
|
||||
|
||||
ScrollView {
|
||||
HScrollView {
|
||||
Layout.fillWidth: true
|
||||
|
||||
HTextArea {
|
||||
|
|
Loading…
Reference in New Issue
Block a user