# Rotating any element with opacity != 1 inside a Viewport Class throws a warning

**URL:** <https://forums.fusetools.com/t/rotating-any-element-with-opacity-1-inside-a-viewport-class-throws-a-warning/1362>\
**Category:** Bug Reports\
**Created:** [June 19, 2017, 8:05pm UTC](https://forums.fusetools.com/t/rotating-any-element-with-opacity-1-inside-a-viewport-class-throws-a-warning/1362 "2017-06-19T20:05:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Lins\_e\_Silva](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/igor_lins_e_silva/32/415_2.png) [@Igor\_Lins\_e\_Silva](https://forums.fusetools.com/u/Igor_Lins_e_Silva)\
**Post date:** [June 19, 2017, 8:05pm UTC](https://forums.fusetools.com/t/rotating-any-element-with-opacity-1-inside-a-viewport-class-throws-a-warning/1362/1 "2017-06-19T20:05:29Z")

</div>

Fuse Local Preview is giving me this warning on the Problems tab - Fuse 1.0.1 on Windows 10

```auto
"This element has a partial opacity and is not flat. This will not render correctly. Put the opacity on a flat child panel instead."

```

Here’s also a small test app based on the same Viewport example, that is available on the docs at  
[https://www.fusetools.com/docs/fuse/elements/viewport](https://www.fusetools.com/docs/fuse/elements/viewport)

I’ve just added a Opacity=“0.7” to the rectangle and a circle to the background to prove that everything is working as expected. But when the rotation is triggered the warning appears on the Problems tab.

```auto
<App>
	<Circle Height="50" Width="50" ZOffset="0" Alignment="Center" Fill="Blue"/>
	<Viewport Perspective="400" ZOffset="1">
		<Panel>
			<Rectangle Opacity="0.7" Width="200" Height="200" Background="#2ecc71">
				<Clicked>
					<Rotate DegreesX="360" Duration="1" Easing="QuadraticInOut" DurationBack="0" />
				</Clicked>
			</Rectangle>
		</Panel>
	</Viewport>
</App>

```

The warning tells me that something will not be rendered correctly, but I haven’t found any real issues yet. This is specially annoying when you use several elements falling in that same scenario, flooding Fuse Studio with a lot of warnings.

There is any correct way to do this? Or its really a misplaced warning?

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [June 19, 2017, 8:47pm UTC](https://forums.fusetools.com/t/rotating-any-element-with-opacity-1-inside-a-viewport-class-throws-a-warning/1362/2 "2017-06-19T20:47:22Z")

</div>

Hi,

The warning message says it all. If you wrap the `Rectangle` in a `Panel` and rotate the panel instead, it will render correctly and not give a warning.

The fact that the warning is annoying and flooding however is a problem that should be fixed on the Fuse side. A cleanup of how realtime warnings/diagnostics are reported in is more than due.

---

<div class="post-metadata">

**Author:** ![Igor\_Lins\_e\_Silva](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/igor_lins_e_silva/32/415_2.png) [@Igor\_Lins\_e\_Silva](https://forums.fusetools.com/u/Igor_Lins_e_Silva)\
**Post date:** [June 19, 2017, 9:02pm UTC](https://forums.fusetools.com/t/rotating-any-element-with-opacity-1-inside-a-viewport-class-throws-a-warning/1362/3 "2017-06-19T21:02:04Z")

</div>

Thanks Anders, nothing to worry then.
