ui/editor: Fix incorrect use of this in resize handlers

Fixes #441