-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Warning Messages in Chrome Browser #148
Comments
Unfortunately I am not able to replicate one of these problems. The width and height of the resize text divs is actually set code-wise. And on my Teclast 20 HD with up-to-date Fully Browser + Android 10 the widget works fine. Are you able to get logs of the problem on the Android device. Regarding the first problem, are there any texts which are larger than the actual box? |
for 1.: There are further messages in the console which may indicate an issue (I'm not too familiar with that, sorry), e. g.
The last line appears for all widgets linked to my "Bring"-page in vis. Regarding the warning message mentioned in my issue, some of the text got lost. Here it comes again (I enclosed the critical characters by '): "Cannot resize text for item w00499-Hefezopf: Error: Set a static height and width on the target element '<'div class="item-name" style="height: calc(0.2013 * 150px);margin-top: calc(-0.0431 * 150px;"'>'Hefezopf'<'/div'>' before using textFit!" I guess the issue comes from the negative number in the "margin-top" calculation? |
Here comes the reason (and solution) for my issue 2 (see above: "...the browser starts the default page of vis a soon as the tablet keyboard opens"): |
First of all: Thank you, @foxriver76 , for providing this great adapter! It's the most used one on my tablet placed in the kitchen - and works more reliable than the Alexa interface :-)
Here comes an issue with the latest Google Chrome Browser (which is used by fully kiosk browser as well):
Opening a vis page with the bring widget, the development tool coming with Chrome browser shows multiple warnings (one for each item, here as example for a shopping item "Hefezopf"):
"Bring[w00499]: Cannot resize text for item w00499-Hefezopf: Error: Set a static height and width on the target element
checkRecentItems @ index.html?smarthome-DG:3763"
When trying to enter a new shopping item via the headline of the bring widget, the browser starts the default page of vis a soon as the tablet keyboard opens. This ist true for Android 9 and Android 10; however the tablet keyboard opens correctly and an item can be inserted in earlier Android versions (5, 6 and 7)
Versions:
The text was updated successfully, but these errors were encountered: