#1 2017-03-16 16:33:45

Antonio.Cambule
Member
Registered: 2017-02-19
Posts: 38

[solved]: SwipeMenu is open after changing View

Hi there,

i used the SwipeMenu Samples to make an swipe menu in my app.

In MainView i do:

Show

  SetStyle "MenuContainer" "top" "0px"
  SetStyle "MenuContainer" "left" "0px"

SwipeLeft:

  MenuHide

  // Code of MenuHide:
  RemoveClass "MenuContainer" "slideInLeft"
  AddClass "MenuContainer" "slideOutLeft"

SwipeRight:

  MenuShow

  // Code of MenuShow:
  RemoveClass "MenuContainer" "slideOutLeft"
  AddClass "MenuContainer" "slideInLeft"

  Show "MenuContainer"

1. I open and clode the menu in MainView
2. I change to editview (cancel or save it) --> ReplaceView "MainView"
3. Back in MainView the menu is opened

I tried using Hide "MenuContainer" on MenuHide after the AddClass, that works, but then i do not have any animation

I've seen that there is no sample with more views, so this problem maybe hasn't been seen before?

thanks and regards
Antonio

Last edited by Antonio.Cambule (2017-03-17 14:18:00)

Offline

#2 2017-03-17 13:02:38

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: [solved]: SwipeMenu is open after changing View

Hello Antonio,

Please, take a look at this SwipeMenu3.zip modified sample, who uses the Master View in order to place the Container and Menu. I think they works reasonably well, even when I am not very fun of this "swipe menus". Please, Antonio, take a look and tell me if they can help you in some manner.

Offline

#3 2017-03-17 14:19:29

Antonio.Cambule
Member
Registered: 2017-02-19
Posts: 38

Re: [solved]: SwipeMenu is open after changing View

Thanks David,

your sample showed up my mistake. The "left" property of the Container has to be -width, out of the menu,
otherwise it keeps visible. Now it works as expected.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.