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

    full-journalist-82607

    05/02/2023, 11:12 AM
    Yeah it's fine for number cards. Humm maybe item renderers are not working with layoutName ?
  • b

    bright-gpu-74537

    05/02/2023, 11:13 AM
    yeah, its about cloning... previously layoutName was being used for cloning, now thats not the case, so ill need to clone the layout itself... no biggie i dont think
  • f

    full-journalist-82607

    05/02/2023, 12:58 PM
    It 's funny layoutColumns doesn't seem to work on my local app (haxe.ui.containers.Grid has no field layoutColumns) maybe it's because I'm using version 4.1.5 of haxe ? Nevermind, I'll use code in this case 🙂
  • b

    bright-gpu-74537

    05/02/2023, 2:54 PM
    ok, phew, all working again now: http://haxeui.org/builder/?4aaff8af
  • e

    early-butcher-76809

    05/02/2023, 3:44 PM
    Somehow, I managed to miss this one although I tried to call validate functions manually ^^ Thank you ! It's still off, as the first layout update is done immediately but the second one frame later, but if I catch that frame delayed CHANGE event, the total height is the right one and I can work with that <3
  • b

    bumpy-engineer-49082

    05/02/2023, 4:07 PM
    Hi. Is there a possibility to scale up ? Because when I try height and width attributes, nothing changes.
  • f

    full-journalist-82607

    05/02/2023, 4:14 PM
    I think you need to set the styling of the calendar buttons for example http://haxeui.org/builder/?e240e82b . The calendar size is based on the size of the buttons.
  • b

    bumpy-engineer-49082

    05/02/2023, 4:37 PM
    Great, thank you.
  • e

    early-butcher-76809

    05/03/2023, 2:16 AM
    Is there something like the CSS property aspect-ratio which helps us give the height depending on the width (or the other way around) ? For example, this bit :
    Copy code
    aspect-ratio: 1 / 1;
      width: 50%;
    would make the component have its height be 50% width of its parent (therefore make it a square).
  • h

    helpful-boots-41914

    05/03/2023, 2:54 AM
    @early-butcher-76809 maybe provide a link to a jsfiddle that uses the css? Like a tangible example
  • e

    early-butcher-76809

    05/03/2023, 2:55 AM
    I don't really know the language, I just found a stack overflow post :D I wanna have my component height depend on its width. Is it possible somehow ? ^^
  • e

    early-butcher-76809

    05/03/2023, 2:58 AM
    (For now, I catch the event UIEvent.RESIZE and go the ``height = width`` way but I'd like to have it in the XML files, not the HX code :/)
  • b

    bright-gpu-74537

    05/03/2023, 5:34 AM
    thats pretty interesting, never heard of it... someone else asked about aspect ratio before, and i remember thinking "it would be nice if there was a css prop for this"
  • e

    early-butcher-76809

    05/03/2023, 1:46 PM
    From what I understand, it's pretty recent, like 2021
  • h

    hallowed-ocean-84954

    05/04/2023, 2:53 AM
    I'm trying to center some text - 2 lines - on a screen in a flixel game using haxeui. I can get it centered horizontally but it stays at the top of the page. Here's where I've gotten to so far
  • h

    hallowed-ocean-84954

    05/04/2023, 2:53 AM
    any ideas ?
  • h

    hallowed-ocean-84954

    05/04/2023, 2:54 AM
    I tried absolute layouts but I'd rather have a more flexible option
  • b

    bright-gpu-74537

    05/04/2023, 5:16 AM
    you mean like this? http://haxeui.org/builder/?4504a899 (ive coloured the backgrounds so you can see whats going on)
  • h

    hallowed-ocean-84954

    05/04/2023, 2:17 PM
    Many thanx - I tried verticalAlign but not on the vbox. I am still not fully grocking the *box layout model I guess.
  • f

    full-journalist-82607

    05/04/2023, 9:20 PM
    Hmm, interesting layoutColumns work with boxes ( with grid layout) but not if you use grids http://haxeui.org/builder/?9ac6f16a
  • b

    bright-gpu-74537

    05/05/2023, 6:43 AM
    thats because grid overrides columns and sets its to a sensible default of 2 (which is often what you are after)
  • b

    bright-gpu-74537

    05/05/2023, 6:43 AM
    well, it doesnt "override", it just sets it...
  • b

    bright-gpu-74537

    05/05/2023, 6:44 AM
    though i guess it might make sense to see if i can clear that up... small detail imo, and although it seems strange, it does make sense
  • b

    bright-gpu-74537

    05/05/2023, 6:46 AM
    https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/containers/Grid.hx#L11-L13
  • e

    early-butcher-76809

    05/05/2023, 3:00 PM
    Hey, Ian, when you state that the code on the builder is stored for 60 days, does it mean links to the builder are valid for 60 days or are they forever until the heat death of the universe ?
  • b

    bright-gpu-74537

    05/05/2023, 3:16 PM
    haha, thats more of a disclainer tbh... in reality there are there for alot longer 🤫
  • b

    bright-gpu-74537

    05/05/2023, 3:16 PM
    i do have a clean up script that deletes all the outputs of the builder (the .js file) for all project, to save space
  • b

    bright-gpu-74537

    05/05/2023, 3:17 PM
    but that only means that if you visit that project again, you will have to rebuild from scratch rather than just instantly being served the compiled js file
  • b

    bright-gpu-74537

    05/05/2023, 3:18 PM
    it does remind me, i should probably clear things up... although, im only using 17.5% of 154gb...
  • e

    early-butcher-76809

    05/05/2023, 3:20 PM
    Alright, thanks ! So d'you think I can use builder links to store test cases for a PR or should I include the whole test html code in a PR comment ?
1...165816591660...1687Latest