Skip to content

Commit df84ac1

Browse files
zholobovrozele
authored andcommitted
Fixed bug with binding absent to bring dimensions of border to dimensions of Canvas in BorderedCanvas (microsoft#1758)
1 parent cd8e34a commit df84ac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactWindows/ReactNative.Shared/UIManager/BorderedCanvas.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ private Border GetOrCreateBorder()
142142
};
143143

144144
// Bind border width and height to canvas dimensions
145-
SetBinding(WidthProperty, new Binding
145+
_border.SetBinding(WidthProperty, new Binding
146146
{
147147
Source = this,
148148
Path = new PropertyPath("Width")
149149
});
150150

151-
SetBinding(HeightProperty, new Binding
151+
_border.SetBinding(HeightProperty, new Binding
152152
{
153153
Source = this,
154154
Path = new PropertyPath("Height")

0 commit comments

Comments
 (0)