when a widget's parent node has no height, we set the height to minimum of 340 pixels