Sie sind nicht angemeldet.

1

Freitag, 13. November 2009, 13:09

prop + changeorigin

I've come up with this bug:

I'm using changeorigin to hide stuff offscreen. If I mix up changeorigin with value "prop" (for width attribute in this case) changeorigin does not recalculate x. If I use % or px it works just fine.

I'm using krpano 1.0.8 beta 8.

Edit: Correction beta 8, not 9

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »cmscrl« (13. November 2009, 13:28)


rdhoore108

Schüler

Beiträge: 89

Wohnort: Belgium

Beruf: Systems and Network Administrator

  • Nachricht senden

2

Samstag, 25. September 2010, 19:28

problem with changeorigin() in combination with "prop"

This bug is still alive in krpano-1.0.8.11, it is crawling over my screen as well. *unsure*

The problematic behavior can be reproduced with the following code:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<krpano onstart="myinit">

	<plugin name="test"
		url="myimage.jpg"
		x="10"
		y="10"
		width="prop"
		height="50%"
		align="lefttop"
		edge="lefttop"
	/>

	<action name="myinit">
		trace("plugin[test].x=", get(plugin[test].x) );
		plugin[test].changeorigin( lefttop, righttop );
		trace("plugin[test].x=", get(plugin[test].x) );
	</action>

</krpano>


Replace the url with that one for an existing image.
Normally, x should get a bigger value after changeorigin(), but it does not, instead the whole image shifts to the left.
- Ronny D'Hoore

Ähnliche Themen