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

    tall-teacher-57409

    03/06/2023, 5:51 PM
    vertically*
  • b

    bright-gpu-74537

    03/06/2023, 5:53 PM
    you cant, vbox doesnt response to children with verticalAlign=center, similarly, hbox doesnt respond to children with horizontalAlign=center
  • b

    bright-gpu-74537

    03/06/2023, 5:53 PM
    you could use spacers or a box
  • t

    tall-teacher-57409

    03/06/2023, 5:55 PM
    oh, okayy!
  • t

    tall-teacher-57409

    03/06/2023, 5:56 PM
    and speaking about boxes, what makes a box useful or special? I mean aren't vbox/hbox/grids enough?
  • t

    tall-teacher-57409

    03/06/2023, 5:56 PM
    sorry im a haxeui newbie 😁
  • b

    bright-gpu-74537

    03/06/2023, 5:56 PM
    http://haxeui.org/builder/?77e4f143
  • t

    tall-teacher-57409

    03/06/2023, 5:57 PM
    oo the website work snow
  • t

    tall-teacher-57409

    03/06/2023, 5:57 PM
    ah I see, thank you
  • b

    bright-gpu-74537

    03/06/2023, 5:58 PM
    boxes allow alignment in any direction, and they also allow components to overlap, but for the most part you arent wrong, hbox / vbox / grids are likely what you will use more (i know i do)
  • f

    full-journalist-82607

    03/06/2023, 5:58 PM
    the cool thing about using a box is that you can apply a layout by xml /css. In fact a vbox is abox with a vertical layout, an hbox is a box with a horizontal layout. So you can imagine that depending on a theme, you could have abox that changes layout for example
  • b

    bright-gpu-74537

    03/06/2023, 5:59 PM
    ☝️ also true
  • t

    tall-teacher-57409

    03/06/2023, 5:59 PM
    aightt thank you Ian and yoplala for the tons of help ❤️
  • f

    full-journalist-82607

    03/06/2023, 6:01 PM
    You're welcome 🙂
  • l

    little-oxygen-79174

    03/07/2023, 1:35 AM
    Ok so I've determined the reason for a bug I'm experiencing, where clicking outside a menu doesn't close it
  • l

    little-oxygen-79174

    03/07/2023, 1:36 AM
    Apparently, in ComponentImpl,
    _mouseOverFlag
    is set to false and therefore HaxeUI doesn't dispatch the event.
  • l

    little-oxygen-79174

    03/07/2023, 1:43 AM
    That also appears to be the cause of the bug where MenuCheckBox can be checked by clicking the item but not the actual checkbox.
  • l

    little-oxygen-79174

    03/07/2023, 1:45 AM
    mousemove
    and
    mouseup
    are getting invoked but
    mousedown
    is only getting invoked when the cursor is on the menu item not the checkbox.
  • b

    bright-gpu-74537

    03/07/2023, 7:51 AM
    so this is wrong?
  • b

    bright-gpu-74537

    03/07/2023, 7:51 AM
    ( @little-oxygen-79174 )
  • b

    bright-gpu-74537

    03/07/2023, 7:52 AM
    oh, hang on - this is flixel isnt it... i didnt test there for some reason... but that behaviour (in the builder) isnt what you see in flixel?
  • l

    little-oxygen-79174

    03/07/2023, 7:52 AM
    correct the builder behaves differently from flixel
  • l

    little-oxygen-79174

    03/07/2023, 7:52 AM
    but after further testing I found I can't reproduce the error in the test bench
  • l

    little-oxygen-79174

    03/07/2023, 7:53 AM
    it seems to me like the code that's checking if the UI is in bounds is having an issue but I'm not sure
  • l

    little-oxygen-79174

    03/07/2023, 7:54 AM
    (I have been able to reproduce a different issue in the test bench and I posted it on Github)
  • l

    little-oxygen-79174

    03/07/2023, 7:54 AM
    oh looks like i didn't hit send on that
  • l

    little-oxygen-79174

    03/07/2023, 7:59 AM
    https://github.com/haxeui/haxeui-core/issues/515 this reproduces in a test workspace but is unrelated to the click issue
  • b

    bright-gpu-74537

    03/07/2023, 10:15 AM
    alright, thats fixed - ive noticed something else odd with the flixel backend, but its totally unrelated to this
  • f

    full-journalist-82607

    03/08/2023, 10:43 AM
    I have continuous horizontal box and a background image where I use 9 slices. I would like the image to repeat each row. I was wondering is it possible with css or do I need to make my own custom container ?
  • b

    bright-gpu-74537

    03/08/2023, 10:54 AM
    yeah, background-image wont have any idea of its contents... so it wont know where the "components" are (or how big they are)
1...158415851586...1687Latest