Changeset 336 for cleversvg/trunk/base/csBaseElement.class.php
- Timestamp:
- 03/07/08 08:33:04 (4 years ago)
- Files:
-
- 1 modified
-
cleversvg/trunk/base/csBaseElement.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cleversvg/trunk/base/csBaseElement.class.php
r335 r336 76 76 } 77 77 } 78 $element_node->setAttribute('style', implode('; ', $styles)); 78 if (count($styles) > 0) 79 { 80 $element_node->setAttribute('style', implode('; ', $styles)); 81 } 79 82 break; 80 83 default: … … 260 263 if (!is_null($value)) 261 264 { 262 $this->attributes[ $name] = $value;265 $this->attributes[strtolower($name)] = $value; 263 266 } 264 267 } … … 271 274 public function setDepth($depth) 272 275 { 273 if (!is_null($depth) && is_int($depth)) 276 if (is_null($depth)) 277 { 278 unset($this->attributes['style']['z-index']); 279 } 280 elseif (is_int($depth)) 274 281 { 275 282 $this->attributes['style']['z-index'] = (string) $depth;
