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

Image with scaleX not working #38

Open
cristan opened this issue Dec 19, 2018 · 2 comments
Open

Image with scaleX not working #38

cristan opened this issue Dec 19, 2018 · 2 comments

Comments

@cristan
Copy link

cristan commented Dec 19, 2018

I have the following image:

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="5dp"
        android:height="8dp"
        android:viewportHeight="8"
        android:viewportWidth="5">
    <group
        android:translateX="5.5"
        android:translateY="-22">
        <group
            android:scaleX="-1">
            <path
                android:fillColor="#acacac"
                android:pathData="M1.4543568 30L5.5 26 1.4543568 22 0.5 22.94359 3.5912863 26 0.5 29.05641 1.4543568 30Z"/>
        </group>
    </group>
</vector>

After converting:

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="5dp" android:height="8dp" android:viewportHeight="8" android:viewportWidth="5">
    <path android:fillColor="#acacac" android:pathData="M6.954-52L11-48l-4.046 4L6-44.944 9.091-48 6-51.056 6.954-52z"/>
</vector>

The new image is completely invisible. My guess is that the scaleX is causing the bug.

@alexjlockwood
Copy link
Owner

Sorry for the delay, will investigate!

@alexjlockwood
Copy link
Owner

Hmm, I've confirmed the bug... looks like an issue specific to the scaleX="-1"...

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

2 participants