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

    bright-gpu-74537

    06/18/2019, 7:07 PM
    i know the feeling
  • a

    ambitious-knife-25690

    06/18/2019, 7:07 PM
    Sounds like an epidemic
  • b

    bright-gpu-74537

    06/18/2019, 7:08 PM
    ^^ indeed
  • s

    sparse-table-35282

    06/18/2019, 7:08 PM
    XD
  • s

    sparse-table-35282

    06/18/2019, 7:10 PM
    It'll take me a bit before I can strip out the database connection stuff from my app, so we'll see if I can get it to ya
  • s

    sparse-table-35282

    06/18/2019, 7:10 PM
    actually I may have an idea...
  • s

    sparse-table-35282

    06/18/2019, 7:11 PM
    I'll copy the kha project's contents into the openfl one and see if it runs with the same scenario
  • s

    sparse-table-35282

    06/18/2019, 7:11 PM
    sorry, thinking and typing at the same time...
  • s

    sparse-table-35282

    06/18/2019, 7:11 PM
    dangerous, obviously
  • b

    bright-gpu-74537

    06/18/2019, 7:19 PM
    heh heh, no worries... ping me if you get a minimal test case
  • s

    sparse-table-35282

    06/18/2019, 7:27 PM
    ...
  • s

    sparse-table-35282

    06/18/2019, 7:27 PM
    ok, this one works...
  • s

    sparse-table-35282

    06/18/2019, 7:27 PM
    I'm so confused
  • s

    sparse-table-35282

    06/18/2019, 7:28 PM
    I made a minimal app that contains the same layout as the kha one and it works fine
  • s

    sparse-table-35282

    06/18/2019, 7:29 PM
    I'm going to tweak it until I find the step that reproduces my problem... I think I know what it might be
  • s

    sparse-table-35282

    06/18/2019, 7:30 PM
    in this, I'm adding the layout to the app in the main file, in my main app, I extend the scrollview for the layout, and I add that to the app. Then I add my layout on top of that scroll view
  • s

    sparse-table-35282

    06/18/2019, 7:31 PM
    wait... that ain't it...
  • s

    sparse-table-35282

    06/18/2019, 7:31 PM
    I'll get back to you
  • s

    sparse-table-35282

    06/18/2019, 7:40 PM
    mystery kinda solved
  • s

    sparse-table-35282

    06/18/2019, 7:41 PM
    I added the scroll view with the layout and then a button over the top. When I hit tab, things didn't go well...
  • s

    sparse-table-35282

    06/18/2019, 8:35 PM
    ... so this begs the question... why didn't kha work? Kha also didn't catch the tab key in general... I'll have to look into that later...
  • s

    sparse-table-35282

    06/18/2019, 8:59 PM
    @bright-gpu-74537 So I'm up and running with proper tabbing, but now I have a more basic issue. I originally was using AddChild for my layout in the scrollview. That took into account the X and Y positions I gave the elements. However, it was the original reason my tabbing wasn't working. I switched to addComponent and tabbing now works, but it no longer seems to care about X and Y position.
  • s

    sparse-table-35282

    06/18/2019, 9:00 PM
    Is there an easy way to make the elements utilize the x and y cords or to simply make the elements that would go off screen go to a new column? I feel like the latter wouldn't be hard, but its been a while since I've done any html/xml layouts
  • b

    bright-gpu-74537

    06/18/2019, 9:58 PM
    im not 100% sure what you mean
  • b

    bright-gpu-74537

    06/18/2019, 9:58 PM
    do you mean:
  • b

    bright-gpu-74537

    06/18/2019, 9:59 PM
    Copy code
    xml
    <scrollview>
        <absolute>
            <button left="300" top="300" />
        </absolute>
    </scrollview>
  • b

    bright-gpu-74537

    06/18/2019, 9:59 PM
    ?
  • b

    bright-gpu-74537

    06/18/2019, 10:00 PM
    or maybe:
  • b

    bright-gpu-74537

    06/18/2019, 10:01 PM
    Copy code
    xml
    <scrollview width="100%" height="200" contentWidth="100%">
        <hbox continious="true" width="100%">
            <button />
            <button />
            <button />
            <button />
            <button />
            <button />
            ...
        </hbox>
    </scrollview>
  • b

    bright-gpu-74537

    06/18/2019, 10:02 PM
    the last one is a continuous hbox, so it will grow horizontally until it gets to the 100% width of the parent (contentWidth), the it will start placing on the next line
1...686970...1687Latest