New version with better support for resizing & fixed the width property within the this.scope.