fix mobile scrollbar in RTL mode
This commit is contained in:
parent
bf339509e3
commit
8e0344a979
@ -75,8 +75,11 @@ T.ScrollBar {
|
|||||||
property real handleState: 0
|
property real handleState: 0
|
||||||
|
|
||||||
visible: !controlRoot.interactive
|
visible: !controlRoot.interactive
|
||||||
|
|
||||||
x: Math.round(controlRoot.orientation == Qt.Vertical
|
x: Math.round(controlRoot.orientation == Qt.Vertical
|
||||||
? (parent.width - width) - (parent.width/2 - width/2) * handleState
|
? (Qt.application.layoutDirection === Qt.LeftToRight
|
||||||
|
? (parent.width - width) - (parent.width/2 - width/2) * handleState
|
||||||
|
: (parent.width/2 - width/2) * handleState)
|
||||||
: 0)
|
: 0)
|
||||||
|
|
||||||
y: Math.round(controlRoot.orientation == Qt.Horizontal
|
y: Math.round(controlRoot.orientation == Qt.Horizontal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user