If I use this view in a rectangle view, the width of vertical line and horizontal line is not the same. How can I set the width and height of context?