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