Make ImageRenderer clip its contents

This commit is contained in:
Frank A. Krueger 2017-12-10 18:07:13 -08:00
parent 2f0adaea7a
commit 23d5f1df77
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,7 @@ namespace Ooui.Forms.Renderers
if (Control == null) {
var imageView = new Ooui.Image ();
SetNativeControl (imageView);
this.Style.Overflow = "hidden";
}
if (e.NewElement != null) {

View File

@ -253,6 +253,11 @@ namespace Ooui
set => this["order"] = value;
}
public Value Overflow {
get => this["overflow"];
set => this["overflow"] = value;
}
public Value PaddingTop {
get => this["padding-top"];
set => this["padding-top"] = value;