Fix my incompetent Viewport usage

Am I doing something wrong here. I get a vertical scrollbar when the view opens, even through i don’t need one, then when i scroll it it vanshes and when i make the viewport smaller it doesn’t reappear. Inspecting variables in the debugger shows the inner has a greater height than the Viewport…

Any bright ideas?

Oh - I’ve got it. I shouldn’t have inherited from Viewport, I’ve overriden resized and shafted it :slight_smile:


You can still inherit, but make sure to call “Viewport::resized()” in you inherited function, to make sure the original behavior is kept.

1 Like

Ah yeah - cheers man - I fixed it with that earlier. I’ve been coding for too many days in a row and all the letters on the computer screen are starting to look the same!

1 Like