Fixed calculations for contentHeight and contentWidth 

Set currentScene's parent item before calculating contentHeight and contentWidth.