[view] ImageView stretc true as default
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user