Seems to be a timing issue again. setting the scroll_top to scroll_max only works if you somehow delay it some arbitrary amount (with a timer for instance). You can't add an element to something and then set it's scroll_top to it's scroll_max, it just doesn't work. Suggested solution: wrap all property getter methods like width, height, scroll_top, scroll_max, which are only useful after the element has rendered, and make them sleep till the element is drawn and the information is available. For those trying to squeeze out performance, they could use the start event?

I tried putting the scrolling code in the start event, but it didn't work for me... I don't understand why. Maybe the start event only works on the window as a whole and not elements within. Does started? work on elements? could I ...

sleep(0.01) until thingo.started?

And would that make it wait till everything was ready?

Reply via email to