[Paint] Changed condition for y position change. Fix bug [14631]

This commit is contained in:
Oleg Demchenko 2013-09-24 22:22:00 +04:00
Родитель c559cf04b7
Коммит 1847053b76
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -19,7 +19,7 @@ namespace PaintCode
View.BackgroundColor = UIColor.White;
float statusBarHeight = UIDevice.CurrentDevice.SystemVersion == "7.0" ?
float statusBarHeight = float.Parse(UIDevice.CurrentDevice.SystemVersion) >= 7 ?
UIApplication.SharedApplication.StatusBarFrame.Height : 0f;
button = new BlueButton (new RectangleF (10, 10 + statusBarHeight, 120, 120 - statusBarHeight));

Просмотреть файл

@ -19,7 +19,7 @@ namespace PaintCode
View.BackgroundColor = UIColor.White;
float statusBarHeight = UIDevice.CurrentDevice.SystemVersion == "7.0" ?
float statusBarHeight = float.Parse(UIDevice.CurrentDevice.SystemVersion) >= 7 ?
UIApplication.SharedApplication.StatusBarFrame.Height : 0f;
button = new GlossyButton (new RectangleF (30, 30 + statusBarHeight, 130, 38));
button.SetTitle ("Stop!", UIControlState.Normal);

Просмотреть файл

@ -21,7 +21,7 @@ namespace PaintCode
View.BackgroundColor = UIColor.White;
drawing = new DrawingView ();
float statusBarHeight = UIDevice.CurrentDevice.SystemVersion == "7.0" ?
float statusBarHeight = float.Parse(UIDevice.CurrentDevice.SystemVersion) >= 7 ?
UIApplication.SharedApplication.StatusBarFrame.Height : 0f;
drawing.Frame = new System.Drawing.RectangleF (0, statusBarHeight, 320, 640 - statusBarHeight);