Sizing and caching #58
-
Hi - migrating from the old version and really impressed with new functionality. I've been able to move a bunch of custom code into config so very chuffed. The new class_toggle works great too. I have 2 things left I'd like to solve. First, sizing / placement isn't quite right for me, here's the new version: and the old for comparison: Any suggestions on how to make it expand to fit the panel? Config looks like this:
Second query is that my (large) SVG file is loaded every time, which can take a long long time on dodgy mobile. Any chance you could expose a useCache property to avoid the cachebuster? Thanks very much. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Hi @Alfiegerner Great to hear you're moving along with the new version. Have you tried v1.0.20? It's not yet released to HACS, but you can get it here and simply copy it over the one you've already installed: https://raw.githubusercontent.com/ExperienceLovelace/ha-floorplan/master/dist/floorplan.js This new version improves the Regarding the cache buster, we will add a config item that will allow you to enable/disable cache. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Thanks @pkozul much better: Still some padding to the sides - which I can make go away by removing min-height:0px from #floorplan. At the this point the vagaries of CSS start seeming mystical to me :) |
Beta Was this translation helpful? Give feedback.
-
Hi @Alfiegerner You can now control the cache in several ways (using
Available in the latest version (v1.0.20): https://raw.githubusercontent.com/ExperienceLovelace/ha-floorplan/master/dist/floorplan.js Let us know how you go. |
Beta Was this translation helpful? Give feedback.
Hi @Alfiegerner
You can now control the cache in several ways (using
cache: true
orcache: false
):Available in the latest version (v1.0.20): https://raw.githu…