Results 1 to 2 of 2

Thread: ScrollView elements break with rotation attribute

  1. #1

    ScrollView elements break with rotation attribute

    TTS version: 11.1
    OS: GNU/Linux (Debian)

    When adding any ScrollView element to an object's UI, if the scrollview or any of its parent elements have the rotation attribute, the ScrollView becomes a featureless, gray box and displays no children. In the case of a element parent having a rotation, the ScrollView can be made to work if its own rotation value is set to offset its rotation back to "0 0 0", however this likely defeats the purpose of having the parent rotated.

    Here is a simple example of what this looks like:



    Here is the XML for this example UI:

    HTML Code:
    <Defaults>
        <VerticalScrollView height="100%" width="100%"/>
        <Text color="White"/>
    </Defaults>
    <Panel width="600" height="360" scale="0.25 0.25" position="0 0 -80" color="black">
        <TableLayout>
            <Row preferredHeight="20">
                <Cell><Text>Rotation 0 0 0</Text></Cell>
                <Cell><Text>Rotation 0 0 180</Text></Cell>
            </Row>
            <Row>
                <Cell>
                    <VerticalScrollView>
                        <VerticalLayout>
                            <Panel color="blue" />
                            <Panel color="green" />
                            <Panel color="red" />
                            <Panel color="orange" />
                        </VerticalLayout>
                    </VerticalScrollView>
                </Cell>
                <Cell>
                    <VerticalScrollView rotation="0 0 180">
                        <VerticalLayout>
                            <Panel color="blue" />
                            <Panel color="green" />
                            <Panel color="red" />
                            <Panel color="orange" />
                        </VerticalLayout>
                    </VerticalScrollView>
                </Cell>
            </Row>
        </TableLayout>
    </Panel>

  2. #2
    Upon further testing, the ScrollView has strange visual properties at small rotational values.



    The rotated state still allows for the content to be scrolled.


Similar Threads

  1. UI.show() ignore visibility attribute
    By Dlivias in forum Scripting Bug Reports
    Replies: 0
    Last Post: 02-01-2019, 04:25 PM
  2. UI Attribute to remove click/open sound
    By Hiram Abiff in forum Scripting Suggestions
    Replies: 0
    Last Post: 09-30-2018, 06:40 AM
  3. Clicking Through XML Elements
    By berserk3k in forum Scripting
    Replies: 3
    Last Post: 07-28-2018, 01:37 AM
  4. Hidden Buttons by player attribute
    By GiantDwarf in forum Scripting Suggestions
    Replies: 0
    Last Post: 11-23-2017, 03:52 AM
  5. scripts for hand is break
    By gerrydao in forum Bug Reports
    Replies: 2
    Last Post: 08-05-2017, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •