Responsive design?

More
4 years 10 months ago #1253 by Christiaan
Good day

Thank you for this module, it was just what I was looking for.

But how do I go about getting this module to display on mobile phones?

With css I can add width=100%, but the tiles do not line up with the picture?

Please help.

Best regards

Christiaan

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #1258 by Thanh Nguyen
Replied by Thanh Nguyen on topic Responsive design?
Hello Christiaan,

I'm sorry about this slow response, I replied to your ticket, but somehow email was seem not sent to your successfully.

Concerning your question, The puzzle module currently does not support responsive display, because the html canvas element (is used to draw puzzle board and its tiles) does not support to automatically adjust its size by its content (inside image).

If you want to try making it responsive, you need to set both its width + height to make the board has a same aspect ratio with inside image.
You can google for how to set height of box based on its width.

Thanh Nguyen
Founder & Lead Developer

Please Log in or Create an account to join the conversation.