BUGFIX: fixed disappearing of the cursor when panel has been resized