Page 2 of 3

Swiper Problem

Posted: Sat Dec 14, 2013 11:23 pm
by Doug Black

Ok, so I'm back! :)

I am trying to use Swiper to do a swiping banner across the top of the app. The Swiper works fine. However, the DIV retains its size that it has in the app with the three other DIVs for the banner inside.

So here's the design in the app.
Image

And here's the problem. The Menu should start right under the banner. However, its separated by a big distance.
Image

Any thoughts?


Swiper Problem

Posted: Sun Dec 15, 2013 7:46 am
by Alena Prykhodko

Hello Doug, please share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell steps to test the question above.


Swiper Problem

Posted: Sun Dec 15, 2013 9:07 am
by Doug Black

App is shared (Church App Template). Just start the app and you'll see the issue.


Swiper Problem

Posted: Sun Dec 15, 2013 9:09 am
by Alena Prykhodko

Sorry, didn't check it was shared. I'll test and update asap.


Swiper Problem

Posted: Sun Dec 15, 2013 9:34 am
by Doug Black

Thanks!


Swiper Problem

Posted: Sun Dec 15, 2013 9:45 am
by Alena Prykhodko

Doug, in SwiperCSS asset for .swiper-container and .swiper-wrapper change:

pre
position:relative;
/pre
on:
pre
position:fixed;
/pre


Swiper Problem

Posted: Sun Dec 15, 2013 9:57 am
by Doug Black

That partially solved the problem; but now it looks very bizarre, is showing the slides + the remaining space in the DIV, and is hiding some of the menu.

Image


Swiper Problem

Posted: Sun Dec 15, 2013 10:12 am
by Alena Prykhodko

For menuGrid component change top margin value, for example set 20, you'll see changes. Then edit as you need.
Image


Swiper Problem

Posted: Sun Dec 15, 2013 10:27 am
by Doug Black

This appears to show the menu, but it obscures me from clicking on the top menu items. I believe the remaining portion of the DIV is still covering it.


Swiper Problem

Posted: Sun Dec 15, 2013 8:42 pm
by Alena Prykhodko

Sorry for delay.
In CSS asset replace:
pre
div.swiper-container, div.swiper-slide {
width: 100%;
height: 100vw;
overflow: hidden !important;
}/pre

with
pre
div.swiper-container {
width: 100%;
height: 100vw;
overflow: hidden !important;
}/pre