Prevent resizing Editors
This commit is contained in:
parent
716cea64e9
commit
3c28ae7909
|
@ -42,9 +42,11 @@ namespace Ooui.Forms.Renderers
|
|||
return;
|
||||
|
||||
if (Control == null) {
|
||||
SetNativeControl (new TextArea {
|
||||
var textArea = new TextArea {
|
||||
ClassName = "form-control"
|
||||
});
|
||||
};
|
||||
textArea.Style["resize"] = "none";
|
||||
SetNativeControl (textArea);
|
||||
|
||||
Control.Input += HandleChanged;
|
||||
//Control.Started += OnStarted;
|
||||
|
|
|
@ -91,17 +91,17 @@ namespace Ooui.Forms.Renderers
|
|||
Control.Style.BackgroundColor = color.ToOouiColor ();
|
||||
}
|
||||
|
||||
protected void SetNativeControl (Ooui.Element uiview)
|
||||
protected void SetNativeControl (Ooui.Element element)
|
||||
{
|
||||
_defaultColor = Color.FromStyleValue (uiview.Style.BackgroundColor);
|
||||
Control = (TNativeElement)uiview;
|
||||
_defaultColor = Color.FromStyleValue (element.Style.BackgroundColor);
|
||||
Control = (TNativeElement)element;
|
||||
|
||||
if (Element.BackgroundColor != Xamarin.Forms.Color.Default)
|
||||
SetBackgroundColor (Element.BackgroundColor);
|
||||
|
||||
UpdateIsEnabled ();
|
||||
|
||||
this.AppendChild (uiview);
|
||||
this.AppendChild (element);
|
||||
}
|
||||
|
||||
public override void SetControlSize (Size size)
|
||||
|
|
Loading…
Reference in New Issue