Improved bounding client rect calculation
Added parseWidget hook