Rect fixed yMax,xMax to SetRect method