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

    bright-gpu-74537

    04/16/2023, 2:26 PM
    well, i defo have a flag for if the children are of varying size or not already... so maybe this could be a nice approach
  • h

    helpful-boots-41914

    04/16/2023, 2:29 PM
    That certainly takes care of a few things for you then! I have a test case to consider too - percent widths. Wonder how that fits into this
  • b

    bright-gpu-74537

    04/16/2023, 2:30 PM
    % widths are likely not to work well / at all
  • b

    bright-gpu-74537

    04/16/2023, 2:40 PM
    much better: http://haxeui.org/builder/?e0ab8b37
  • h

    helpful-boots-41914

    04/16/2023, 2:43 PM
    Wow, super nice! That's basically it right there
  • b

    bright-gpu-74537

    04/16/2023, 2:45 PM
    yeah, this might be my new fav component / layout 😄
  • p

    purple-businessperson-14467

    04/16/2023, 4:49 PM
    Is jumpy expected?

    https://cdn.discordapp.com/attachments/565569107701923852/1097202109130227745/hittarget.gifâ–¾

  • b

    bright-gpu-74537

    04/16/2023, 4:50 PM
    what backend? Short answer is no
  • p

    purple-businessperson-14467

    04/16/2023, 4:50 PM
    http://haxeui.org/builder/?e0ab8b37
  • b

    bright-gpu-74537

    04/16/2023, 4:52 PM
    i guess it might make sense actually, though looks off for sure when there is a single row
  • p

    purple-businessperson-14467

    04/16/2023, 4:53 PM
    ya my thought was if the row + spacing/margin is less than width of row, then do notta. But Im late to the party so...
  • b

    bright-gpu-74537

    04/16/2023, 4:53 PM
    well, ill check it out at some point anyway, kinda an edge case, but worth looking at
  • h

    helpful-boots-41914

    04/16/2023, 5:10 PM
    The jumpiness probably won't look that bad unless someone is purposely testing that out. The idea is to be responsive for the container and I think this does the job.
  • h

    helpful-boots-41914

    04/16/2023, 11:22 PM
    I'm looking to achieve a modal effect but I don't want it to be interactable. Basically, I want to cover the screen with a slightly transparent grey background and have a component displayed inside of it. Much like the dialog can do except without all the buttons/header and without being movable. I tried using an absolute and a box to achieve this but that didn't work. . .
  • h

    helpful-boots-41914

    04/16/2023, 11:25 PM
    Nevermind looks like absolute might work
  • h

    helpful-boots-41914

    04/16/2023, 11:46 PM
    Okay now the challenge is working on creating the opacity of the background without changing the opacity of its contents
  • h

    helpful-boots-41914

    04/16/2023, 11:50 PM
    Figured out I can do something like . .
    Copy code
    xml
    <box. . .>
      <box id="cover" style="opacity:0.35"/>
      <label text="centered" . . . />
    </box>
    Wrapping it in another box does the trick
  • h

    helpful-boots-41914

    04/16/2023, 11:54 PM
    Well it works on the builder but not in Kha if I have images. But dialogs somehow achieve the effect I'm looking for
  • a

    ambitious-knife-25690

    04/16/2023, 11:56 PM
    there's probably a way to remove the interact-ability of dialogs
  • a

    ambitious-knife-25690

    04/16/2023, 11:57 PM
    also I don't think they have a fixed component layout
  • a

    ambitious-knife-25690

    04/16/2023, 11:57 PM
    but I'm going off memory atm
  • a

    ambitious-knife-25690

    04/16/2023, 11:58 PM
    check the explorer, I'm pretty sure all dialogs on that page are designed in xml to look like that
  • a

    ambitious-knife-25690

    04/16/2023, 11:58 PM
    not require that
  • h

    helpful-boots-41914

    04/17/2023, 12:18 AM
    They don't and I've looked through the dialogs they do all share a common layout, they all have a title and a button to close it or if you click on the #modal-backround it closes the modal. I've been looking through the source code of how the modal works and it's literally no different than what I'm doing . . . I don't see where the difference is
  • a

    ambitious-knife-25690

    04/17/2023, 12:21 AM
    yes, but if you see how the layout is constructed it is all defined in the custom .xml file
  • a

    ambitious-knife-25690

    04/17/2023, 12:22 AM

    https://cdn.discordapp.com/attachments/565569107701923852/1097316010756935841/image.pngâ–¾

  • a

    ambitious-knife-25690

    04/17/2023, 12:22 AM
    compare these two files
  • a

    ambitious-knife-25690

    04/17/2023, 12:22 AM
    the
    mycustomdialog.xml
    defines the "shared layout" for sake of the examples.
    title -> body -> footer
  • a

    ambitious-knife-25690

    04/17/2023, 12:22 AM
    but if you look at simple-login-dialog.xml
  • a

    ambitious-knife-25690

    04/17/2023, 12:22 AM
    it defines no titlebar
1...163616371638...1687Latest