Best way to maintain area size


#1

Hi,
If i have go.Picture that its visibility is binded to some data model.
When the picture becomes invisible, i want to maintain its area size although invisible.
I know of a way of putting it in a fixed size go.Panel “Auto”.
Is there any other way to maintain its size ?
Tany


#2

Instead of setting or binding GraphObject.visible, set or bind GraphObject.opacity.

In your case you’ll want to use a conversion function such as:
function(v) { return v ? 1.0 : 0.0; }


#3

OK,
I see what you mean.
Thanks