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

itemSpacings and translation aren't updated properly if they are defined in the xml file. #610

Open
vbuchii opened this issue Jan 19, 2021 · 1 comment

Comments

@vbuchii
Copy link
Contributor

vbuchii commented Jan 19, 2021

While running tests itemSpacings and translation aren't updated properly if they are defined in the xml file.

SomeComponent.xml

<?xml version="1.0" encoding="utf-8" ?>
<component name="SomeComponent" extends="Node">
    <script type="text/brightscript" uri="pkg:/components/SomeComponent.brs" />
    <children>
        <LayoutGroup id="group"
            itemSpacings="[25]"
            layoutDirection="vert"
            translation="[100, 50]" >
        </LayoutGroup>
    </children>
</component>

SomeComponent.brs

sub init()
    group = m.top.findNode("group")
    print "group.itemspacings = " group.itemspacings
    print "group.layoutDirection = " group.layoutDirection
    print "group.translation = " group.translation
end sub

Actual result:

    group.itemspacings = <Component: roArray> = []
    group.layoutDirection =  vert
    group.translation = <Component: roArray> = []

Expected result:

    group.itemspacings = <Component: roArray> = [25]
    group.layoutDirection =  vert
    group.translation = <Component: roArray> = [100, 50]
@vbuchii
Copy link
Contributor Author

vbuchii commented Feb 2, 2021

width, height properties defined in the XML file aren't updated too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant