Skip to content
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

Text and Switch items have different heights in Sitemap #3873

Open
dilyanpalauzov opened this issue Mar 6, 2025 · 0 comments
Open

Text and Switch items have different heights in Sitemap #3873

dilyanpalauzov opened this issue Mar 6, 2025 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@dilyanpalauzov
Copy link
Contributor

I define two items

Switch a "A"
Switch b "B"

and put them in a sitemap:

sitemap a label="A" {
Switch item=a visibility=[b==ON] staticIcon="poweroutlet"
Text item=a visibility=[b==OFF] staticIcon="poweroutlet"
Switch item=b
}

When Compact mode is OFF in OH-Android 3.17.4-beta and I toggle the b item, I expect that the vertical position of the b item does not change, and the first item a is just rendered differently - as text or as switch. But the b item goes slightly up and down. This happens even when the icons are hidden.

Moreover, during the re-rendering, the first line disappears and then appears. It would be good, if the change is instant: either the sitemap before the change is shown (Switch item=a), or the sitemap after the change (Text item=a), but nothing in between (emptly first line).

@dilyanpalauzov dilyanpalauzov added the bug Indicates an unexpected problem or unintended behavior label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant