1) fixed variable scope issue with _timeline 2) make call to _timeline.updateLayout() in the resize handler event.