[view] ImageView stretc true as default
This commit is contained in:
@@ -5,7 +5,6 @@ views:
|
|||||||
- $type: haxework.view.ImageView
|
- $type: haxework.view.ImageView
|
||||||
geometry.padding: 10
|
geometry.padding: 10
|
||||||
image: $r:image:logo
|
image: $r:image:logo
|
||||||
stretch: true
|
|
||||||
- id: tabs
|
- id: tabs
|
||||||
$type: haxework.view.HGroupView
|
$type: haxework.view.HGroupView
|
||||||
layout.margin: 5
|
layout.margin: 5
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import haxework.view.utils.DrawUtil.FillType;
|
|||||||
var view:IView<Dynamic>;
|
var view:IView<Dynamic>;
|
||||||
if (value.image != null) {
|
if (value.image != null) {
|
||||||
var imageView = new ImageView();
|
var imageView = new ImageView();
|
||||||
|
imageView.stretch = false;
|
||||||
imageView.skinId = "border";
|
imageView.skinId = "border";
|
||||||
imageView.fillType = FillType.CONTAIN;
|
imageView.fillType = FillType.CONTAIN;
|
||||||
imageView.imageUrl = value.image.url;
|
imageView.imageUrl = value.image.url;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class ImageView extends SpriteView {
|
|||||||
public var imageUrl(default, set):String;
|
public var imageUrl(default, set):String;
|
||||||
public var color(default, set):Int = -1;
|
public var color(default, set):Int = -1;
|
||||||
public var fillType(default, set):FillType;
|
public var fillType(default, set):FillType;
|
||||||
public var stretch:Bool;
|
public var stretch:Bool = true;
|
||||||
|
|
||||||
private var bitmapSkin:BitmapSkin = new BitmapSkin();
|
private var bitmapSkin:BitmapSkin = new BitmapSkin();
|
||||||
private var coloredImage:BitmapData;
|
private var coloredImage:BitmapData;
|
||||||
|
|||||||
Reference in New Issue
Block a user