зеркало из https://github.com/xamarin/ios-samples.git
[Paint] Changed condition for y position change. Fix bug [14631]
This commit is contained in:
Родитель
c559cf04b7
Коммит
1847053b76
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче