public function get_height($context = 'view') { $value = $this->get_prop('height', $context); // Inherit value from parent. if ('view' === $context && empty($value)) { $value = $this->parent_data['height']; } return $value; }