Parent - Child with the new type="container" *SOLVED*

  • Hi,

    I'm having some trouble with a thing that I thought it would be really simple after the release of the latest version of KRPano (krpano 1.0.8.15).

    What I'm trying to create is this:

    I have a layer/plugin with an image:

    Code
    <layer name="map" keep="true" url="img/fp_1st.png" align="centertop" edge="top" />

    Then I've created an empty container layer/plugin and assigned it as child of the first layer:

    Code
    <layer name="container" keep="true" type="container" parent="map" />

    This should create an empty container right?

    Then I've assigned a child of this container like this:

    Code
    <layer name="child1" keep="true" url="common/mappoint.png" parent="container" align="center" />

    Now I should be able to hide the container layer/plugin and have the child1 layer/plugin hidden right? The problem is that child1 is not even visible in the first place.

    Am I doing something wrong here?

    ––––•(-• zyON •-)•––––

    Einmal editiert, zuletzt von zyON (19. Dezember 2012 um 13:21) aus folgendem Grund: Ok, just found out what I was missing. The container layer needs width and height attributes to work: <layer name="container" keep="true" type="container" width="100%" height="40" parent="map" />

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!