-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Request: A few options for responsive design #32
Comments
Sadly there is just an workaround available. |
Hi, sorry that you've been having issues there! Unfortunately I can only suggest trying @adrianjost's workaround for now :) The way iro.js does layout is kinda complicated just due to the nature of SVG. That's one of the things I really want to improve with 4.0, I'm just a little busy with other projects at the moment |
Thanks, |
The iro.js v4 beta is out now, which adds a Here's a basic example: <html>
<head>
<script src="https://unpkg.com/@jaames/iro@beta/dist/iro.js"></script>
</head>
<body>
<div id="color-picker-mount"></div>
<script>
var colorPicker = new iro.ColorPicker("#color-picker-mount", {
width: 300,
});
// whenever you need to resize, call the resize() method with your new width:
var newWidth = 200;
colorPicker.resize(newWidth);
</script>
</body>
</html> |
Neat! I'm going to close this thread now. Let me know if theres anything else you need :) |
@thuyettiensinh how did you do multiple colors on the wheel? |
@rwwagner90 |
I'm not sure it can work for now, because it's the two years ago 🤔 🤔 I hope it can help you @rwwagner90 |
let colorPicker = new iro.ColorPicker("#color-picker", {
width: 320,
height: 320
}
How can i responsive design with this ?
because i only see fixed width and heigh on colorPicker object !
The text was updated successfully, but these errors were encountered: