Fix: text annotation popup now stays inside window width