FHEM Forum

FHEM => Frontends => TabletUI => Thema gestartet von: malc_b am 23 Februar 2017, 17:22:59

Titel: height.indexOf is not a function bug
Beitrag von: malc_b am 23 Februar 2017, 17:22:59
Sorry for being in english

After latest tabletui update I get the following bug in console

    height.indexOf is not a function in widget_popup.js:166:33  (1st of many)

This looks to be something to do with allow % as well px.

UPDATE:

There is an additional bug in popup.  I have 3 switch button as group in a popup.  This has stopped working in the popup but the same code copied to outside the popup works ok.  Sometimes the buttons are clickable, that is a toast message is seen, but they seem to stop working after a click or two.  Most times the popup opens and the buttons fail to respond to clicks.

Titel: Antw:height.indexOf is not a function bug
Beitrag von: malc_b am 23 Februar 2017, 19:30:11
I've found the issue.  I had a popup where I had missed the px off the size.  Before it seemed happy with that.  I still have the problem with switch buttons not working in popup though
Titel: Antw:height.indexOf is not a function bug
Beitrag von: setstate am 23 Februar 2017, 19:36:48
but thanks for report that. I'll catch such constellations
Titel: Antw:height.indexOf is not a function bug
Beitrag von: malc_b am 23 Februar 2017, 21:21:28
I'm a bit further on with why my switch buttons do not work in the popup.  I've tracked down that the faElem.on(releaseEventType.... line 425 in fa-multi-button.js is not being triggered, but I don't know why.  That is triggered for working buttons.  In the layout of my popup I have 3 columns so I've used 2 x  float: right to get this.  If I take out the float right the layout goes wrong but now the buttons (those still visible) work.  For some reason float right stops the triggering or stops the event being assigned.