[view] ImageView stretc true as default

This commit is contained in:
2019-04-04 20:41:26 +03:00
parent de0a7a3687
commit b87338cbef
3 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ views:
- $type: haxework.view.ImageView
geometry.padding: 10
image: $r:image:logo
stretch: true
- id: tabs
$type: haxework.view.HGroupView
layout.margin: 5

View File

@@ -12,6 +12,7 @@ import haxework.view.utils.DrawUtil.FillType;
var view:IView<Dynamic>;
if (value.image != null) {
var imageView = new ImageView();
imageView.stretch = false;
imageView.skinId = "border";
imageView.fillType = FillType.CONTAIN;
imageView.imageUrl = value.image.url;