Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

zyON

Schüler

  • »zyON« ist der Autor dieses Themas

Beiträge: 70

Wohnort: Lisboa, Portugal

  • Nachricht senden

1

Mittwoch, 19. Dezember 2012, 13:08

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:

Quellcode

1
<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:

Quellcode

1
<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:

Quellcode

1
<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 •-)•––––

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »zyON« (19. Dezember 2012, 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" />