This diagram shows that vertical extend of cumulus cloud depend of depth of conditional instability.
Deeper the unstable layer, deeper the cloud.