Skip to content

Tried all methods, couldn't make the frame scrollable #1062

Answered by zozowell
zozowell asked this question in Q&A
Discussion options

You must be logged in to vote

OK, after looking into the code a bit, I realized that I misunderstood the power of these decorators. As well, they are order sensitive... which is not obviously mentioned in the doc (or I missed it), but it's unfortunately true.

  • vscroll_indicator, it just does the scroll indicator drawing, instead of supporting the scroll (i.e. the mouse event), I have to write my own event handling to make it "scroll" along the element margin. It is drawn in proportion of the inner element dimension v.s. outer box dimension. So, if the inner elements' size is smaller than outer box, it will not shows up at all.
  • frame, it's the crux to make the box become a "viewport" of the inner element, when the inne…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ArthurSonzogni
Comment options

@zozowell
Comment options

Answer selected by zozowell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants