[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;
|
||||
|
||||
@@ -13,7 +13,7 @@ class ImageView extends SpriteView {
|
||||
public var imageUrl(default, set):String;
|
||||
public var color(default, set):Int = -1;
|
||||
public var fillType(default, set):FillType;
|
||||
public var stretch:Bool;
|
||||
public var stretch:Bool = true;
|
||||
|
||||
private var bitmapSkin:BitmapSkin = new BitmapSkin();
|
||||
private var coloredImage:BitmapData;
|
||||
|
||||
Reference in New Issue
Block a user