https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    05/10/2019, 4:55 PM
    this is the most minimal i could produce:
  • b

    bright-gpu-74537

    05/10/2019, 4:55 PM
    <textarea width="100%" height="100" />
  • b

    bright-gpu-74537

    05/10/2019, 4:55 PM
    ie, width = 100%, obviously the container also has to be % or fixed, but that causes the issue
  • b

    bright-gpu-74537

    05/10/2019, 4:56 PM
    its strange, but im not sure whats changed... i went back to a commit before i refactored the macros and the same happens there too
  • b

    bright-gpu-74537

    05/10/2019, 4:56 PM
    but presumably this worked at some point??
  • b

    brave-kangaroo-30399

    05/11/2019, 2:41 AM
    Uh no guarantees there
  • b

    brave-kangaroo-30399

    05/11/2019, 3:15 AM
    Actually, I don’t get any crashes
  • b

    brave-kangaroo-30399

    05/11/2019, 3:15 AM
    I have a vbox with fixed width and height as the parent, and your text area snippet as the child
  • b

    brave-kangaroo-30399

    05/11/2019, 3:16 AM
    Latest core and backend, some version of dev flixel
  • b

    brave-kangaroo-30399

    05/11/2019, 3:17 AM
    Initting HaxeUI the way I describe in the readme and not with HaxeUI app, although they should be the same
  • b

    bright-gpu-74537

    05/11/2019, 6:49 AM
    can you send me your test app when you get a moment?
  • m

    miniature-summer-93860

    05/13/2019, 6:32 AM
    I can't seem to get dropdown to work.
  • m

    miniature-summer-93860

    05/13/2019, 6:33 AM
    Copy code
    var dropdown = new DropDown();
            dropdown.width = 60;
            dropdown.fontSize = 12;
            dropdown.listSize = 12;
            dropdown.text = "Dropdown";
            dropdown.dataSource.add({value:"Item 1"});
            addChild(dropdown);
  • m

    miniature-summer-93860

    05/13/2019, 6:33 AM
    this returns this
  • m

    miniature-summer-93860

    05/13/2019, 6:33 AM
    Copy code
    Uncaught exception: Null access
    Called from $Main.__constructor__(Main.hx:51)
    Called from $DocumentClass.__constructor__(ApplicationMain.hx:267)
    Called from $ApplicationMain.start(ApplicationMain.hx:196)
    Called from $ApplicationMain.start(ApplicationMain.hx:142)
    Called from fun$3598(ApplicationMain.hx:116)
  • b

    bitter-family-72722

    05/13/2019, 8:12 AM
    which of those is line 51?
  • b

    bitter-family-72722

    05/13/2019, 8:12 AM
    maybe
    dataSource
    defaults to
    null
    ?
  • b

    bright-gpu-74537

    05/13/2019, 8:27 AM
    new comp? As Gamma11 said - whats line 51? datasource shouldnt be null
  • b

    brave-kangaroo-30399

    05/13/2019, 1:47 PM
    I’ve never gotten it to initialize via code... always through xml
  • b

    brave-kangaroo-30399

    05/13/2019, 1:48 PM
    The { } parameters are weird and inconsistent ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    05/13/2019, 2:48 PM
    this should work (not tested yet as in meetings)
  • b

    bright-gpu-74537

    05/13/2019, 2:49 PM
    Copy code
    xml
    <listview>
        <itemrenderer>
            <hbox>
                <image id="img" />
                <vbox>
                    <button id="button1" />
                    <button id="button2" />
                    <button id="button3" />
                <vbox>
            </hbox>
        </itemrenderer>
    </listview>
  • b

    bright-gpu-74537

    05/13/2019, 2:49 PM
    and then
  • b

    bright-gpu-74537

    05/13/2019, 2:49 PM
    Copy code
    haxe
    mylist.dataSource.add({button1: "value1a", button2: "value2a", button3: "value3a", img: "some/image/path"});
    mylist.dataSource.add({button1: "value1b", button2: "value2b", button3: "value3b", img: "some/image/path"});
    mylist.dataSource.add({button1: "value1c", button2: "value2c", button3: "value3c", img: "some/image/path"});
  • b

    bright-gpu-74537

    05/13/2019, 2:49 PM
    the default item renderer is just an hbox with a label called "value" in it
  • b

    bright-yak-48460

    05/13/2019, 8:30 PM
    @bright-gpu-74537 It's this the preferred chatter zone than gitter?
  • b

    bright-gpu-74537

    05/13/2019, 8:44 PM
    to be honest, i use both... discord is nicer though
  • b

    bright-yak-48460

    05/13/2019, 9:47 PM
    Thx. And agreed.
  • s

    sparse-table-35282

    05/14/2019, 1:01 PM
    Hey @bright-gpu-74537, have you had an opportunity to try my tabbing scenario?
  • b

    bright-gpu-74537

    05/14/2019, 1:17 PM
    hey sorry, completely slipped my mind - been bogged down with work... will try and take a look later this eve
1...272829...1687Latest