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

SVG dimensionAttributes boolean not being respected #51

Closed
mcraiganthony opened this issue May 16, 2016 · 10 comments
Closed

SVG dimensionAttributes boolean not being respected #51

mcraiganthony opened this issue May 16, 2016 · 10 comments
Assignees
Labels

Comments

@mcraiganthony
Copy link

When SVG dimensionAttributes boolean is set to false the generated sprite still has height and width attributes on the symbols.

xmlDeclaration and doctypeDeclaration work as expected.

I reverted to 1.2.19 to verify.

@jkphl
Copy link
Collaborator

jkphl commented May 16, 2016

Thanks for reporting, @mcraiganthony! I'll check that asap!

@jkphl jkphl added the bug label May 16, 2016
@jkphl jkphl self-assigned this May 16, 2016
@jkphl
Copy link
Collaborator

jkphl commented May 16, 2016

@mcraiganthony I tested with both svg-sprite and gulp-svg-sprite and both behave correctly / as expected. Could you please double-check / confirm that you're using a configuration like this:

var config = {
    svg: {
        dimensionAttributes: false
    }
}

I'm asking because the option used to be somewhere at shapes.dimensions (or similar) a couple of releases ago. Thanks for confirming!

@mcraiganthony
Copy link
Author

mcraiganthony commented May 16, 2016

@jkphl Yep. See my config below. I also deleted my node_modules and ran npm install just to make sure all dependencies were correct. I'll have a co-worker update to 1.3 and see if he gets the same results. Thanks!

screen shot 2016-05-16 at 4 08 10 pm

@mcraiganthony
Copy link
Author

@jkphl My co-worker updated to 1.3 and sees the same results ... sprite symbols have width and height attributes.

@jkphl
Copy link
Collaborator

jkphl commented May 16, 2016

That's super strange. I didn't test with symbol mode, it was view mode IIRC, so I'll do that tomorrow and let you know. Thanks for helping!

@hesselberg
Copy link

+1 on this -- will have to downgrade until fixed :-)

@jkphl
Copy link
Collaborator

jkphl commented May 17, 2016

No idea what the exact reason was (I suspect a change inside lodash with the handling of NodeLists), but it should be fixed now (new release 1.3.1). Can you confirm?

@hesselberg
Copy link

Yes, works perfectly :-) thanks! 👍

@mcraiganthony
Copy link
Author

Thanks @jkphl! Much appreciated.

@jkphl
Copy link
Collaborator

jkphl commented May 17, 2016

@mcraiganthony @hesselberg Glad that it worked for you! :)

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

No branches or pull requests

3 participants