haxeui-core icon indicating copy to clipboard operation
haxeui-core copied to clipboard

Css support for scaleMode, imageVerticalAlign, imageHorizontalAlign.

Open aW4KeNiNG opened this issue 8 years ago • 2 comments

For example:

.image {
    scale-mode: fit-inside;
    image-horizontal-align: center;
    image-vertical-align: bottom;
}

aW4KeNiNG avatar Jan 22 '17 20:01 aW4KeNiNG

@ianharrigan, check if https://github.com/haxeui/haxeui-core/pull/91/commits/4c198ea0f68718a45d4cc58cd31f6de1a239d0c6 is the correct way.

I'm wonder if the user set the CSS style at start, it could be a problem to set the value via Haxe. For example the hidden property. If the css is hidden: true, and after that they change the hidden value to false via Haxe, then what happens if applyStyle is called? It would assign the css property again, right? I don't see style.hidden = newValue.

I don't know if I'm tired, the night or what, but I don't see if it is a real problem. Am I missing something? :)

aW4KeNiNG avatar Jan 23 '17 00:01 aW4KeNiNG

I don't know what happened the last day. I would be very tired.

https://github.com/haxeui/haxeui-core/pull/91/commits/8f7b164ed72013c062a52c87a4100d8e1b6bd2c6 is the correct way I think.

PD: I think travis is wrong...

aW4KeNiNG avatar Jan 25 '17 17:01 aW4KeNiNG