-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
[Main UI] screen.viewAreaWidth not updating / working #2929
Comments
Fixes openhab#2929. Signed-off-by: Florian Hotze <dev@florianhotze.com>
I have just checked (both by testing and reading the code) and it did never react to screen resizing live in the past, so this is no regression from 4.3.0. |
You are partly right, I quickly tested it on 4.2.2 amd it never reacted on live changes but it reacted on loading page / reloading URL. At least loading correct value when entering page is crucial for me and a regression as I use this function on home screen which is broken on 4.3. now. Maybe there is a change to bring loading value on page access back at leas on 4.3? |
I can backport #2933 to 4.3.x so it gets fixed there 👍 |
Thank you! |
I can confirm it is working now. Thank you! |
The problem
Using screen.viewAreaWidth within custom widgets. With Opdateing from OH 4.2.2 to OH 4.3.0 on Docker the functions causes issues in custom widgets. For better understanding, I generated a specific test widget and test page.
Until OH 4.2.2screen.viewAreaWidth reacted live on changes of screen width (e.g. when re-sizing browser windows). This stoped now as one can see in the GIF. Neither reloading page (URL + ENTER) nor F5 work. Only clicking the link in OH menu reloads current values once.
Test Widget
Test Page
The text was updated successfully, but these errors were encountered: