'Placed' event not working (SOLVED)

Fuse version: 0.28
Operating system: Windows 10 (64bit)

Here’s the code:

<App Background="#fff">
	    function panel_placed(args) {
	<Panel Placed="{panel_placed}"/>

The placed function is never called: https://dl.dropboxusercontent.com/s/fqr4jmxwj0dmzj2/shot_161026_130230.jpg

You need to add planel_placed to module.exports.

makes sense :slight_smile:

Just so I don’t start a new thread, can you tell me why var “a” doesn’t show the panel’s value?

<App Background="#fff">
		var Observable = require('FuseJS/Observable');
		var a = Observable(0);
		var b = Observable(0);
		function init() {
			b = 100;
	    function panel_placed(args) {
			a = args.height;
		module.exports = {
			panel_placed: panel_placed,
			a: a,
			b: b,
	<StackPanel Placed="{panel_placed}">
		<Text Value="{a}"/>
		<Text Value="{b}"/>

the function panel_placed gets called but the variable is not updated

You’re just replacing the local variable a, not the value in the Observable. Try writing to a.value instead of a in panel_placed.