Method: IsoDoc::PresentationXMLConvert#svg_impose_height_attr
- Defined in:
- lib/isodoc/presentation_function/image.rb
#svg_impose_height_attr(node) ⇒ Object
191 192 193 194 195 196 197 |
# File 'lib/isodoc/presentation_function/image.rb', line 191 def svg_impose_height_attr(node) e = node.elements&.first or return (e.name == "svg" && (!node["height"] || node["height"] == "auto")) or return node["height"] = e["height"] node["width"] = e["width"] end |