[BUG #7846] Added support to get the width / height and contentWidth / contentHeight of an hidden element by using an additional boolean parameter.