Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AngelaIp opened this issue Mar 13, 2020 · 1 comment
Open

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

AngelaIp opened this issue Mar 13, 2020 · 1 comment

Comments

@AngelaIp
Copy link

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.

@AngelaIp
Copy link
Author

It´s always the same. I asked something on friday afternoon and solve it on monday morning.

The sample works, but we have to add more distinct values to the attribute itself.
I tried values like 100px. But we have to enter values like width: 100px
Changing size this way works well. Does anybody have an idea to make one a little bit more end user friendly? People normally don´t know much about css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant