hobbyquaker / node-red-contrib-polymer

A Polymer based Dashboard UI for Node-RED
MIT License
21 stars 0 forks source link

External node - widget collapses during refresh #25

Open M0ebiu5 opened 7 years ago

M0ebiu5 commented 7 years ago

The refresh takes ap. 1 second. During this time, the widget collapses. Tested with fixed .jpg url.

hobbyquaker commented 7 years ago

you should be able to prevent this if you set a fixed height for the widget (e.g. 240px)

M0ebiu5 commented 7 years ago

already tried that - not working (Height: 200px)

hobbyquaker commented 7 years ago

oh, you're right. should be fixed in v0.0.7

M0ebiu5 commented 7 years ago

Problem exists also in v0.0.8

hobbyquaker commented 7 years ago

Possibly this is a browser cache issue. Could you clear it and retry?

M0ebiu5 commented 7 years ago

negative - flushing cache did not help. If the url is empty, it shows the same behavior (maybe the widget should be hidden then?)

hobbyquaker commented 7 years ago

can you try again with v0.0.9?

M0ebiu5 commented 7 years ago

sorry, not working. Also images only scale on horizontal axis. Vertical settings only change the area around the image, but not the image itself (maybe this is intentional?)

The time the widget collapses depends on the refresh time of the external resource: eg an empty url just flickers, a webcam image takes apr. 1 sec.

hobbyquaker commented 7 years ago

hmm, I'm a bit clueless atm. Can't reproduce that here since 0.0.9. Have to dig deeper ;) About the height - yes the height attribute sets only the height of the container, the actual image height is depending on the width - so the image itself keeps its ratio. Will have to think about that...