Make ImageRenderer clip its contents
This commit is contained in:
parent
2f0adaea7a
commit
23d5f1df77
|
@ -28,6 +28,7 @@ namespace Ooui.Forms.Renderers
|
||||||
if (Control == null) {
|
if (Control == null) {
|
||||||
var imageView = new Ooui.Image ();
|
var imageView = new Ooui.Image ();
|
||||||
SetNativeControl (imageView);
|
SetNativeControl (imageView);
|
||||||
|
this.Style.Overflow = "hidden";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.NewElement != null) {
|
if (e.NewElement != null) {
|
||||||
|
|
|
@ -253,6 +253,11 @@ namespace Ooui
|
||||||
set => this["order"] = value;
|
set => this["order"] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Value Overflow {
|
||||||
|
get => this["overflow"];
|
||||||
|
set => this["overflow"] = value;
|
||||||
|
}
|
||||||
|
|
||||||
public Value PaddingTop {
|
public Value PaddingTop {
|
||||||
get => this["padding-top"];
|
get => this["padding-top"];
|
||||||
set => this["padding-top"] = value;
|
set => this["padding-top"] = value;
|
||||||
|
|
Loading…
Reference in New Issue