| Newsgroups |
gmane.comp.audio.supercollider.devel |
| Message-ID |
<[email protected]> |
On March 3, 2018 10:25:00 AM [email protected] wrote:
> Hi James,
> Can you post an SC code reproducer for me?
> I can look tonight.
> Josh
Thanks -- the github issue has a minimal example.
(
w = Window("fml", Rect(800, 200, 500, 400)).front;
v = ScrollView(w, w.view.bounds.insetBy(5, 5)).background_(Color.gray(0.5));
StaticText(v, Rect(400, 350, 200, 200)).background_(Color.blue(0.2));
v.autohidesScrollers = false;
)
The StaticText bounds go outside of the visible window area. I'd expect
autohidesScrollers = false means "don't hide" i.e. "always display."
Oh wait, I just found it.
I checked the qt docs -- qt scrollbar policy is an enum with 3 items)
- ScrollBarAlwaysOff
- ScrollBarAlwaysOn
- ScrollBarAsNeeded
"false" sets the scrollbar policy to... 0. ScrollBarAlwaysOff... why? So
currently, the interpretation of "autohide false" is "you don't have to
hide them because you're never displaying them."
That seems wrong.
Also easy to fix -- set scrollbar policy 1 rather than 0. Purely a classlib
fix, then.
Sorry for the noise. I missed that before.
hjh
Sent with AquaMail for Android
http://www.aqua-mail.com
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/