You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: markdown/api/type/ScrollViewWidget/setSize.markdown
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Updates the width and height of a [ScrollViewWidget][api.type.ScrollViewWidget].
19
19
20
20
## Gotchas
21
21
22
-
Calling this function will mess with the x position of the scrollbar. To fix this, call [object:setScrollHeight()][api.type.ScrollViewWidget.setScrollHeight] after calling this method. If you would not like to reset the scroll height, then it might be a good idea to hide the scrollbar completely.
22
+
This method will alter the scroll bar’s horizontal position. To fix this issue, call [object:setScrollWidth()][api.type.ScrollViewWidget.setScrollWidth] immediately afterwards. If you choose not to reset the scroll width, hiding the scroll bar is recommended.
0 commit comments