Skip to content

Commit 8b1579c

Browse files
committed
Make sure the ScrollPosition don't go over the limit when the limit when the parent is resized
1 parent a2df476 commit 8b1579c

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

extensions/community/Scrollbar.json

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@
5656
"effects": [],
5757
"behaviors": [
5858
{
59-
"leftEdgeAnchor": 1,
6059
"name": "Anchor",
61-
"rightEdgeAnchor": 2,
6260
"type": "AnchorBehavior::AnchorBehavior",
61+
"leftEdgeAnchor": 1,
62+
"rightEdgeAnchor": 2,
6363
"bottomEdgeAnchor": 2,
6464
"topEdgeAnchor": 1,
6565
"relativeToOriginalWindowSize": true,
@@ -89,13 +89,13 @@
8989
"effects": [],
9090
"behaviors": [
9191
{
92+
"name": "Anchor",
93+
"type": "AnchorBehavior::AnchorBehavior",
9294
"bottomEdgeAnchor": 0,
9395
"leftEdgeAnchor": 1,
94-
"name": "Anchor",
9596
"relativeToOriginalWindowSize": true,
9697
"rightEdgeAnchor": 2,
9798
"topEdgeAnchor": 0,
98-
"type": "AnchorBehavior::AnchorBehavior",
9999
"useLegacyBottomAndRightAnchors": false
100100
},
101101
{
@@ -455,10 +455,33 @@
455455
}
456456
]
457457
},
458+
{
459+
"type": "BuiltinCommonInstructions::Comment",
460+
"color": {
461+
"b": 109,
462+
"g": 230,
463+
"r": 255,
464+
"textB": 0,
465+
"textG": 0,
466+
"textR": 0
467+
},
468+
"comment": "Make sure the ScrollPosition don't go over the limit when the limit when the parent is resized."
469+
},
458470
{
459471
"type": "BuiltinCommonInstructions::Standard",
460472
"conditions": [],
461473
"actions": [
474+
{
475+
"type": {
476+
"value": "Scrollbar::Scrollbar::SetScrollPosition"
477+
},
478+
"parameters": [
479+
"Object",
480+
"=",
481+
"ScrollPosition",
482+
""
483+
]
484+
},
462485
{
463486
"type": {
464487
"value": "Scrollbar::Scrollbar::UpdateThumbPosition"

0 commit comments

Comments
 (0)