Hi.
There are two Canvas A and B.
A is on the B.
How to make A have the same height and width as the B?
The B's height and width's change are based on outer-container
e.g.
{value
let A:Canvas =
{Canvas background="lime", width=10cm, height=5cm}
let B:Canvas =
{Canvas background="pink", width=10cm, height=5cm}
{A.add
B,
x = 0,
y = 0
}
let cb:CommandButton = {CommandButton
{on Action do
set A.width = {add-stretch}
set A.height = {add-stretch}
set B.width = c.width
set B.height = c.height
}
}
{VBox
height =8cm,
width = 15cm,
A,
cb
}
}