original_string: public function getStyle()
      {
          $style = '';
  
          // Always add fixed height as a fallback if autosetting or JS fails.
          $height = $this->FixedHeight;
          if (!$height) {
              $height = 800;
          }
          $style .= "height: {$height}px; ";
  
          if ($this->AutoWidth) {
              $style .= "width: 100%; ";
          } elseif ($this->FixedWidth) {
              $style .= "width: {$this->FixedWidth}px; ";
          }
  
          return $style;
      }
code: public function getStyle()
      {
          $style = '';
  
          // Always add fixed height as a fallback if autosetting or JS fails.
          $height = $this->FixedHeight;
          if (!$height) {
              $height = 800;
          }
          $style .= "height: {$height}px; ";
  
          if ($this->AutoWidth) {
              $style .= "width: 100%; ";
          } elseif ($this->FixedWidth) {
              $style .= "width: {$this->FixedWidth}px; ";
          }
  
          return $style;
      }
code_tokens: public function getStyle ( ) { $ style = '' ; // Always add fixed height as a fallback if autosetting or JS fails. $ height = $ this -> FixedHeight ; if ( ! $ height ) { $ height = 800 ; } $ style .= "height: {$height}px; " ; if ( $ this -> AutoWidth ) { $ style .= "width: 100%; " ; } elseif ( $ this -> FixedWidth ) { $ style .= "width: {$this->FixedWidth}px; " ; } return $ style ; }
docstring: Compute style from the size parameters.
docstring_tokens: Compute style from the size parameters .