Get the viewport in PropertyPanel


#1

I want to be able to scroll the content of property panel programtically, so I can remember and restore the last scroll position on next startup. However, the viewport in PropertyPanel is private. Is it possible to add a getter function for that? Thanks.


#2

That wouldn’t really be the best way to do it - better to give it methods that save/load its state, so it can also remember which bits were open, etc. I’m going to need that functionality myself too, so will add something soon.


#3

(oh, I just noticed it already has methods for saving its state - so they just need to have the scroll position added)