…ok, but if it’s not got scrollbars, and if you’re setting the position externally, why are you using a Viewport at all? Couldn’t you do the same thing by just putting one component inside another and moving it around?
Yes, I suppose I can do that.
Could you add a comment in setViewPosition informing that the method will always set the position to 0 if the scrollbars aren’t visible?
…so it’d probably work for you. But if you don’t want anything else to mess with the position of your content, a viewport’s probably not the right kind of container for it.
Erm… sorry to bother you again,
I just tried the last additions and now I’m getting an invalid rectangle when overriding visibleAreaChanged.
The viewport that overrides visibleAreaChanged has visible scrollbars.
Argh! Sorry, my fault, I didn’t clean up the project before rebuilding it!
I was getting a segfault when trying to access the Rectangle’s coordinates…
Again, sorry and thank you for your time.