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.

360boy

Fortgeschrittener

  • »360boy« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

1

Freitag, 5. Juli 2013, 22:54

enabled="false" not working on children HTML5

Hello Klaus,

I was really surprised when I found this issue at HTML5 version of krpano as is a very general feature. It seems that children elements are not receiving the parameter enabled="false" from it's parent, I created this example for you:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<krpano version="1.16.4">
	<layer  name="box1"
	        url="box1.png"
	        enabled="false"
	        align="center"
	>    
	        
      <layer name="button1" 
   	        url="button.png"
	        align="center"
	        onclick="switch(scale,1,1.1);"
	        y="0"
			/>			

      <layer name="button2" 
   	        url="button.png"
	        align="center"
	        onclick="switch(scale,1,1.1);"
	        y="100"
			/>
	
      <layer name="button3" 
   	        url="button.png"
	        align="center"
	        onclick="switch(scale,1,1.1);"
	        y="-100"
			/>
	</layer>				

</krpano>


Which you can see here:

http://imagen360.com/krpano/enabled-false/

The layer "box1" is set to enabled="false" and in flash Krpano it's children elements are not active as they should, but in HTML5 they do. I'm using lates't krpano (1.16.4) ¿Am I doing something wrong here?

Please check this issue, I'm working currently on a menu for iOS devices with a considerable amount of layers inside and I'd like to deactivate it by enable="false" instead of doing a large action which sets enable="false" for each of the individual layers there.

Best regards.

Luis

2

Dienstag, 9. Juli 2013, 11:38

Hi,

thanks for the example!

This problem should be fixed with the new 1.16.5 version:
http://krpano.com/news/#releasenotes1165

Best regards,
Klaus