Skip to content

[Q&A] How does the graphic size modification work? #6

@AngelaIp

Description

@AngelaIp

Hi,
thanks for this great collection of useful tech doc modifications!
I right now struggle to use the "change image size" sample.

I am able to change the size attribute. But the image size doesn´t change.
I assume the following part in the "Size Style Settings" stylesheet is responsible for changing the Graphic size:
.Graphic
{
width: var(width);
}

Styling works when I use a hardcoded size, like 100px. But the variable itself doesn´t work. Is var(width) really correct? Cause the attribute itself is named "style" in your sample:

<xs:element name="Graphic">
xs:complexType
xs:complexContent
<xs:extension base="aras:imageType">
<xs:attribute name="style" type="xs:string"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>

I already changed the name of the variable, but I weren´t succeesful yet to change the image size this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions