properly handle palette menu positioning in /pixeleditor