return _lastSizeRequest.Value;
}
+ //We need to clear the Hint or else it will interfere with the sizing of the Label
+ var hint = Control.Hint;
+ if (!string.IsNullOrEmpty(hint))
+ Control.Hint = string.Empty;
+
Measure(widthConstraint, heightConstraint);
- SizeRequest result = new SizeRequest(new Size(MeasuredWidth, MeasuredHeight), new Size());
+ var result = new SizeRequest(new Size(MeasuredWidth, MeasuredHeight), new Size());
+
+ //Set Hint back after sizing
+ Control.Hint = hint;
+
result.Minimum = new Size(Math.Min(Context.ToPixels(10), result.Request.Width), result.Request.Height);
// if the measure of the view has changed then trigger a request for layout