Page 1 of 1
Browser Widget does not slide with card issue
Posted: Wed Apr 27, 2016 10:57 am
by mrcoollion
I am working with the Browser widget.
When I put the widget on a card and slide to that card from a previous card with the below code the the widget is not sliding in like the Title widget but livecode is already starting to draw it during the card-slide .
Abyway to solve this or is this a bug

?
Code: Select all
visual effect scroll left
go to card "Card2"
See the example stack I included.
Regards,
Paul
Re: Browser Widget does not slide with card issue
Posted: Thu Apr 28, 2016 5:13 pm
by Klaus
Hi Paul,
Looks like a bug to me, even with the official syntax:
...
lock screen for visual effect
go to card "Card2"
unlock screen with visual effect scroll left
...
Please file a but report here, so this can be fixed for the next RC:
http://quality.runrev.com
Best
Klaus
Re: Browser Widget does not slide with card issue
Posted: Thu Apr 28, 2016 5:41 pm
by mrcoollion
Hi Klaus,
Thanks for taking your time with this post.
I have reported the bug as recommended.
Regards,
Paul
Re: Browser Widget does not slide with card issue
Posted: Thu Jul 07, 2016 1:37 pm
by mrcoollion
Work around.
I have found a work around for this issue (see the attached stack).
Before entering the card with the widget on it, you need to have the visible set to false of the widget.
So I set the widget to false when I leave a card and set visible to true when I enter a card.
Also the visual effect I only got working as below (see more in the attached stack)
Code: Select all
visual effect scroll left fast
go card NextCard
The problem still is that the widget only shows at the moment the card is full in view.
I would rather have the widget slide in and out as any other object on the card.
So I tried to take a snapshot just before i leave the card and put it in an image on top and then i set the visible of the widget to false.
The idea is that when i leave the card i can do so with a visual effect and the next time i open that card the image will be shown with the visual effect while the widget is not visible.
However my code does not seem to work ?
Am i doing something wrong? Any idea's ?