[Solved] When filling vbox, content overflowing doesn't update scrollbar state

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Tayruu
Regular
Posts: 141
Joined: Sat Jul 05, 2014 7:57 pm

[Solved] When filling vbox, content overflowing doesn't update scrollbar state

#1 Post by Tayruu »

Apologies if that title doesn't sound entirely clear, I wasn't sure the best way to describe this.

I have a glossary screen where different entries can be viewed, selected from a keyword list. This fills another box with information. I have the scrollbar for the info box set to be "insensitive" when unscrollable, and insensitive_thumb is None.

Depending on certain circumstances, one of two things happens.
  • If the box currently has a lot of text, enough to overflow, the scrollbar thumb will change size accordingly when selecting a new entry. If there's less than the fold, it disappears.
  • If the box currently has enough text to not overflow, the thumb does not update until a second update happens - re-clicking the same entry, another overflowing entry, or hovering the mouse over the scrollbar.
This works fine if unscrollable is set to "hide" or None, however my desired behaviour is to retain the scrollbar background while hiding the thumb element. With further testing, I was able to observe that if I were to set insensitive_thumb to Solid("#f00"), the size of the thumb does update on click, but retains the red swatch, likely meaning the insensitivity-state isn't updating when it should.

I've provided a demo script to demonstrate.

(I thought for sure I'd already posted about this in the past, but couldn't find the topic. I at least here determined the cause is something to do with "insensitive" style.)
Attachments
script.rpy
(3.97 KiB) Downloaded 21 times
Last edited by Tayruu on Wed Jun 14, 2023 7:41 am, edited 1 time in total.

User avatar
Tayruu
Regular
Posts: 141
Joined: Sat Jul 05, 2014 7:57 pm

Re: When filling vbox, content overflowing doesn't update scrollbar state

#2 Post by Tayruu »

Bumping this, as this is still an issue, and I've noticed it in other elements too - though ultimately it's functionally the same problem, with buttons toggling the contents of a single vbox.

EDIT: Fixed as of 8.1.1.23060707

Post Reply

Who is online

Users browsing this forum: No registered users