Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamic Textarea removes parent item in Panorama View

When using a dynamic text area inside a panorama view item, such item disappears.

 

Device: Versa 2

SDK: 4.10

Cli: 1.71

Take this code for example:

 

<svg>
	<defs>
		<symbol id="custom-textarea" type="dynamic-textarea" system-events="all">
			<textarea id="text" fill="white" font-size="25" text-length="120" height="100%" display-align="center" text-anchor="middle" />
		</symbol>
	</defs>

	<use id="container" href="#panoramaview">
		<use id="item1" href="#panoramaview-item">
			<rect width="100%" height="100%" fill="red" />
		</use>

		<use id="item2" href="#panoramaview-item">
			<rect width="100%" height="100%" fill="green" />
			<use id="description" href="#custom-textarea" x="10" y="30%" width="100%-20">
				<set href="text" attributeName="text-buffer" to="Loading..." />
			</use>
		</use>
		<use id="item3" href="#panoramaview-item">
			<rect width="100%" height="100%" fill="blue" />
		</use>
		<use id="item4" href="#panoramaview-item">
			<rect width="100%" height="100%" fill="gray" />
		</use>

		<!-- Have enough pagination dots for your slides (extras are hidden) -->
		<use id="pagination-dots" href="#pagination-widget" y="8">
			<use href="#pagination-dot" />
			<use href="#pagination-dot" />
			<use href="#pagination-dot" />
			<use href="#pagination-dot" />
			<use href="#pagination-dot" />
			<use href="#pagination-highlight-dot" />
		</use>
	</use>
</svg>

 

Expected behaviour:

  • The panorama view should show 4 screens with a red, green, blue and gray backgrounds respectively.
  • The green item containing the textarea should also display the textarea "Loading..." text.
  • There should be 4 pagination dots

 

Actual behavior:

  • The panorama view only shows 3 screens
  • The green item is the one not shown
  • The fourth pagination dot also disappears
Best Answer
0 Votes
0 REPLIES 0