MonoDevelop.MacIntegration.MainToolbar.SelectorView.UpdateLayout C# (CSharp) Method

UpdateLayout() public method

public UpdateLayout ( ) : void
return void
		void UpdateLayout ()
		{
			// Correct the offset position for the screen
			nfloat yOffset = 1f;
			if (Window?.Screen?.BackingScaleFactor == 2) {
				yOffset = 0.5f;
			}

			RealSelectorView.Frame = new CGRect (RealSelectorView.Frame.X, yOffset, RealSelectorView.Frame.Width, RealSelectorView.Frame.Height);
		}