Skip to content

Text and Switch items have different heights in Sitemap #3873

@dilyanpalauzov

Description

@dilyanpalauzov

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions