mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
Make vertical scroll bar at settings tab always active
This commit is contained in:
committed by
James Houlahan
parent
56e32e67de
commit
e8cbbaa832
@ -36,6 +36,24 @@ Item {
|
|||||||
color: Style.main.background
|
color: Style.main.background
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// horizontall scrollbar sometimes showes up when vertical scrollbar coveres content
|
||||||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||||
|
|
||||||
|
// keeping vertical scrollbar allways visible when needed
|
||||||
|
Connections {
|
||||||
|
target: wrapper.ScrollBar.vertical
|
||||||
|
onSizeChanged: {
|
||||||
|
// ScrollBar.size == 0 at creating so no need to make it active
|
||||||
|
if (wrapper.ScrollBar.vertical.size < 1.0 && wrapper.ScrollBar.vertical.size > 0 && !wrapper.ScrollBar.vertical.active) {
|
||||||
|
wrapper.ScrollBar.vertical.active = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onActiveChanged: {
|
||||||
|
wrapper.ScrollBar.vertical.active = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// content
|
// content
|
||||||
Column {
|
Column {
|
||||||
anchors.left : parent.left
|
anchors.left : parent.left
|
||||||
|
|||||||
@ -32,6 +32,24 @@ Item {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
color: Style.main.background
|
color: Style.main.background
|
||||||
|
|
||||||
|
// horizontall scrollbar sometimes showes up when vertical scrollbar coveres content
|
||||||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||||
|
|
||||||
|
// keeping vertical scrollbar allways visible when needed
|
||||||
|
Connections {
|
||||||
|
target: wrapper.ScrollBar.vertical
|
||||||
|
onSizeChanged: {
|
||||||
|
// ScrollBar.size == 0 at creating so no need to make it active
|
||||||
|
if (wrapper.ScrollBar.vertical.size < 1.0 && wrapper.ScrollBar.vertical.size > 0 && !wrapper.ScrollBar.vertical.active) {
|
||||||
|
wrapper.ScrollBar.vertical.active = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onActiveChanged: {
|
||||||
|
wrapper.ScrollBar.vertical.active = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// content
|
// content
|
||||||
Column {
|
Column {
|
||||||
anchors.left : parent.left
|
anchors.left : parent.left
|
||||||
|
|||||||
@ -20,6 +20,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
* GODT-854 EXPUNGE and FETCH unilateral responses are returned before OK EXPUNGE or OK STORE, respectively.
|
* GODT-854 EXPUNGE and FETCH unilateral responses are returned before OK EXPUNGE or OK STORE, respectively.
|
||||||
* GODT-806 Changed GUI dialog on manual update. Added autoupdates checkbox. Simplifyed installation process GUI.
|
* GODT-806 Changed GUI dialog on manual update. Added autoupdates checkbox. Simplifyed installation process GUI.
|
||||||
* Bump gopenpgp dependency to v2.1.3 for improved memory usage.
|
* Bump gopenpgp dependency to v2.1.3 for improved memory usage.
|
||||||
|
* GODT-912 Changed scroll bar behaviour in settings tab
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user