Fix my incompetent Viewport usage


#1

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?


#2

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


#3

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


#4

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!