Skip to content

Stepper max value ( With correction) #54

@Shallowmallow

Description

@Shallowmallow

On Haxe-ui openfl linux target

If you don't put a max value

The max is considered a 0.

Expected Behavior

If you don't put a max value
<number-stepper pos="30" step="10" width ="30%" />
The max should be considered an infinite

Current Behavior

If you don't put a max value
<number-stepper pos="30" step="10" width ="30%" />
The max is considered a 0.

It's the same problem with minimums

Possible Solution

I haven't checked in detail yet, maybe I'll try in the next few days.
But I suppose the problem is the null value
public var min:Null;
public var max:Null;

Maybe it is considered 0 in MathUtil.clamp
https://github.com/haxeui/haxeui-core/blob/35db371129336a9b592c12997db55b2e4cbd333b/haxe/ui/util/MathUtil.hx#L15-L27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions