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

    bright-gpu-74537

    08/03/2022, 9:13 AM
    wonder if haxeui-html5 is the same
  • b

    best-agent-85158

    08/03/2022, 9:14 AM
    can you try that? (or at least is it easy enough because i dont really wanna bother you more 😝 )
  • b

    bright-gpu-74537

    08/03/2022, 9:14 AM
    haxeui-html5 is fine, so its haxeui-openfl only and only on FF... 🤔
  • b

    bright-gpu-74537

    08/03/2022, 9:15 AM
    which is... bizarre... well, at least i can repro... leave it with me, ill have a play and see whats going on
  • b

    best-agent-85158

    08/03/2022, 9:22 AM
    thanks for the help
  • b

    best-agent-85158

    08/03/2022, 9:30 AM
    also, is this a bug or am i doing something wrong?
    Copy code
    haxe
    underline.customStyle.fontUnderline = true;
    underline.text = "Underline";
  • b

    best-agent-85158

    08/03/2022, 9:31 AM
    its the same with bold and italic too
  • b

    bright-gpu-74537

    08/03/2022, 9:31 AM
    does openfl support bold / italic / underlined? If they do then yeah, a bug
  • b

    best-agent-85158

    08/03/2022, 9:31 AM
    with TextFormat
  • b

    bright-gpu-74537

    08/03/2022, 9:32 AM
    looks like they are implemented in haxeui-openfl
  • b

    best-agent-85158

    08/03/2022, 9:32 AM
    eg
    text.defaultTextFormat.bold/italic/underline = true
  • b

    best-agent-85158

    08/03/2022, 9:32 AM
    oh 🙈
  • b

    bright-gpu-74537

    08/03/2022, 9:33 AM
    ah, maybe its because the you are trying to underline the checkbox, not the checkbox label... though, realistically, they should cascade - leave it with me, should be a super simple fix
  • b

    bright-gpu-74537

    08/03/2022, 9:52 AM
    @best-agent-85158 - right, both issues (validation loop and bold/italic/underline) are fixed, latest haxeui-core
  • b

    best-agent-85158

    08/03/2022, 9:53 AM
    really interested - how did you fix the validation loop thing?
  • b

    best-agent-85158

    08/03/2022, 9:53 AM
    also, great work! thank you 😄
  • b

    bright-gpu-74537

    08/03/2022, 9:55 AM
    the validation loop was interesting, the font size on FF was just enough to make to it show a scrollbar initially, then it tried to move the components to wrap, realised it didnt need to, so tried to hide the scrollbar, resize the elements, thought it needed a scrollbar, then tried to wrap, didnt need to... ad infinitum. Solution was to call "syncComponentValidation" before setting the size of the listview in order to say "listen, its all good" - only applied to dropdown lists, only on that specific width and with that specific font / font size.
  • b

    bright-gpu-74537

    08/03/2022, 9:56 AM
    kinda amazing it came up really... i mean, the number of variables that had to be "just right" is kinda crazy 😄
  • b

    bright-gpu-74537

    08/03/2022, 9:57 AM
    so basically, that validation loop was a scrollbar flickering on and off and causing the list contents to resize
  • b

    best-agent-85158

    08/03/2022, 9:58 AM
    oh wow
  • b

    best-agent-85158

    08/03/2022, 9:58 AM
    insane
  • b

    bright-gpu-74537

    08/03/2022, 9:59 AM
    yeah, like i said, the number of variables that had to be "goldilocks" is mad 😄
  • b

    best-agent-85158

    08/03/2022, 10:08 AM
    OooOoo found another bug. TextFields dont render. not sure its haxeui related tho
  • b

    best-agent-85158

    08/03/2022, 10:11 AM
    TextAreas too
  • b

    best-agent-85158

    08/03/2022, 10:11 AM
    mannnn what am i doinggg
  • b

    bright-gpu-74537

    08/03/2022, 10:12 AM
    did you do something like this:
  • b

    bright-gpu-74537

    08/03/2022, 10:12 AM
    Copy code
    xml
        <grid>
            <label text="F1" />
            <textfield width="100%" />
            
            <label text="F2" />
            <textfield width="100%" />
        </grid>
  • b

    bright-gpu-74537

    08/03/2022, 10:12 AM
    ie, set them all to 100%
  • b

    best-agent-85158

    08/03/2022, 10:12 AM
    yep exactly
  • b

    best-agent-85158

    08/03/2022, 10:12 AM
    yeahhh didnt pay attention
1...119611971198...1687Latest