I want scroll bar to keep position when click the button in the area, but when I click the button, the scroll bar is rolled up to the top position
I couldn't find what's the wrong in this code
Code: Select all
screen charinfo(filter_list):
tag info
frame:
xalign 0.78
yalign 0.562
side("c r"):
area (0,0,400,520)
viewport id "charinfo_scroller":
draggable True mousewheel True
vbox:
spacing 2
for i in characters :
if i.state in filter_list :
frame:
button:
xminimum 379
yminimum 120
style "buttonz"
action Show("profile",ch=i)
hbox:
spacing 10
image i.profile at profilzoom
vbox:
text str(i.name) size 25
text str(i.age)+"age" size 15
text i.state size 20
text str(i.set_pay())+"pay" size 20
vbar value YScrollValue("charinfo_scroller")