Better fix to getParent resize hack.
Merge pull request #50 from AllTheDucks/fix-resize-hack2

Better fix to getParent resize hack.