Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Push a container dowb when a widget action is triggered
posted

Hi ! 

I like Indigo really but I can't figure how I can achieve this :

  • I have a widget with 2 states, the second state is triggered with a button inside the widget and, to simplify, the widget container just expands with new information inside it

The widget is on a screen between 2 other containers.  So when I clicked on the button, the widget is a state 2 and expand BUT over the container below.

What I want is that the container below is pushed down as the widget box expands.

Any help is welcome !  Thanks !

Normal State

https://dl.dropboxusercontent.com/u/20902263/IMG_20150831_140035.jpg

State 2 (Actual)

https://dl.dropboxusercontent.com/u/20902263/IMG_20150831_140042.jpg

State 2 (Ideal)

https://dl.dropboxusercontent.com/u/20902263/IMG_20150831_140123.jpg

Parents
  • 300
    Verified Answer
    Offline posted

    Hi Benjamin!

    To achieve what you want I see two different options. 

    You can either use a repeater control or redefine the button interaction in the screen.

    For the first option, to use a repeater control you will have to add two items (one for the screenpart and another one for the container) and make the first item autoheight. By doing that when the screenpart grows the item that contains it will also grow, and it will push the container down.

    For the second option, you can redefine the click interaction for the button in the screen. The second state for the screen will move the container and it will also change the widget/screenpart to make it looked expanded. The disadvantage of this solution is that you will have to repeat the changes of the screenpart in the screen.

    We are considering adding an option to trigger an interaction after a screenpart instance has reached a particular state. I guess that funcionality would be useful for this particular scenario. what do you think?

    Please let us know if we can help you in any other way.
    Regards,
    Helena
    Indigo Studio Team

Reply Children