danielstorey / adapt-expose

An Adapt Framework component which displays panels of content hidden behind front covers. Click to expose the content below
GNU General Public License v3.0
5 stars 16 forks source link

Not appearing as expected when added in trickle #15

Open amruta-thakur opened 6 years ago

amruta-thakur commented 6 years ago

Hi Daniel, First of all, this component is very nice.

Issue:

When we add this component to the trickled block, it appears incorrectly at first glance but as soon as we click any where on the page or even if we click on the browser URL, it rearranges correctly.

Steps to reproduce:

We have used Adapt Framework =>2

Please see the screenshot below:

expose1

I am sharing my Json for the reference:

{
        "_id": "c-01",
        "_parentId": "b-03",
        "_type": "component",
        "_component": "expose",
        "_classes": "",
        "_layout": "full",
        "title": "Lorem ipsom",
        "displayTitle": "Lorem ipsomLorem ipsomLorem ipsom",
        "body": "Lorem ipsom Lorem ipsomLorem ipsomLorem ipsom",
        "instruction": "Select each icon",
        "_columns" : 3,
        "_equalHeights": true,
        "_animationType": "shrink",
        "_items": [
            {
                "front": "<img src='course/en/images/expose1.png'>",
                "back": {
                    "title": "",
                    "body": "Lorem ipsom"
                }
            },
            {
                "front": "<img src='course/en/images/expose2.png'>",
                "back": {
                    "title": "",
                    "body": "Lorem ipsom"
                }
            },
            {
                "front": "<img src='course/en/images/expose3.png'>",
                "back": {
                    "title": "",
                    "body": "Lorem ipsom"
                }
            }
        ]
    }

_Note: This issue is appearing because of property "_autoScroll": "true" in trickle if we false this property the component works fine._

Can you please help regarding this issue?