Skip to content

ColorPicker is wrongly sized when compiling flixel project for android #63

@UncertainProd

Description

@UncertainProd

Flixel Version: 6.0.0
haxeui-core: git
haxeui-flixel: git

I have a ScrollView component with a VBox inside of it, inside of which, I added a ColorPicker component (among other components) like so:
This is the code inside the create() function inside a class extending UIState

final sv: ScrollView = new ScrollView();
sv.percentWidth = 100;
sv.percentHeight = 95;
sv.percentContentWidth = 100;
final innerViewBox: VBox = new VBox();
innerViewBox.percentWidth = 100;

// ... code to add some labels and numbersteppers

final clrPicker = new ColorPicker();
clrPicker.id = 'myclrpicker';
clrPicker.currentColor = clr;
innerViewBox.addComponent(clrPicker);

// ... other stuff
sv.addComponent(innerViewBox);
add(sv);

But when I compile for android, the picker has weird scaling:

Image

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