Popup re-size incorrectly
https://www.pivotaltracker.com/s/projects/640243/stories/53955997
Fixed by adding a timer.

Also included: Event adapter DOM-Event <-> C++

Signed-off-by: IUnknown68 <arne@salsitasoft.com>