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

zoom-control='false' does not work #33

Closed
FranzThomsen1089 opened this issue Jul 15, 2015 · 4 comments
Closed

zoom-control='false' does not work #33

FranzThomsen1089 opened this issue Jul 15, 2015 · 4 comments

Comments

@FranzThomsen1089
Copy link

I cant get zoom-control='false' to work

@nhnb
Copy link
Contributor

nhnb commented Jul 15, 2015

Urks, as far as I can tell, there is no way in HTML to set an attribute to false, if it has a default value of true: http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attributes

At the moment, I can only think of having "no-xxx" attributes with inversed logic. But that does not seem to be a good idea.

@FranzThomsen1089
Copy link
Author

Yes, that does seem to be the only option, but still, it is the way it is done elsewhere. I don't think its a bad solution

@nhnb
Copy link
Contributor

nhnb commented Jul 18, 2015

I just released version 1.1.0, in which the attribute is renamed to no-zoom-control.

@nhnb nhnb closed this as completed Jul 18, 2015
@FranzThomsen1089
Copy link
Author

Actually ... I have dug a bit into it and must admit that it is really messy the approach for handlign booleans. The main problem as I see it is that you cannot bind to a property of type boolean on an element. There are suggestions e.g. here Polymer/polymer#1812 to set the type to Object which would allow databinding to it.

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