Skip to content

Commit 6526fd9

Browse files
author
livecodeali
committed
[[ Tree View ]] Ensure widget scrolls to the top in read-only mode
1 parent 6016810 commit 6526fd9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

extensions/widgets/treeview/treeview.lcb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,7 @@ end handler
606606
// Clamp mViewTopPosition
607607
private handler ensureViewTopPosition()
608608
variable tMinTop as Real
609-
if mReadOnly then
610-
put mRowHeight into tMinTop
611-
else
612-
put 0 into tMinTop
613-
end if
609+
put 0 into tMinTop
614610

615611
// Make sure we don't try to scroll above 0
616612
if mViewTopPosition < tMinTop then

0 commit comments

Comments
 (0)