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

    bulky-exabyte-6537

    03/12/2023, 2:08 AM
    with a good api u really just need to implement a few rendering functions to make it work
  • b

    bright-gpu-74537

    03/12/2023, 8:03 AM
    yeah, agreed: http://haxeui.org/builder/?c6ff9840
  • b

    bright-gpu-74537

    03/12/2023, 8:05 AM
    i think i unified text input is a fair amount of work... the text input in haxeui-kha is pretty functional, buts it not a native one... ie, no multiple styles in the same input... i think for haxeui specifically there is merit having some "shared" type of text input for composite backends... i mean, take haxeui-raylib... i basically took the kha one, change a few functions and that was that...
  • b

    bright-gpu-74537

    03/12/2023, 8:05 AM
    i then added mouse supported to the kha one, and havent done that to the raylib on, so here is a good example of where it being shared would have been nice
  • b

    bright-gpu-74537

    03/12/2023, 8:06 AM
    also, take haxeui-flixel... there the text input is an openfl textfield... this is means its very "seperate" to your application, and a bunch of tricks are use to make it "feel" more part of the app... if there was a shared haxeui text input (that worked with flixel) then that could be used
  • b

    bright-gpu-74537

    03/12/2023, 8:14 AM
    maybe this is a nicer test app / repro: http://haxeui.org/builder/?b0e5c88e
  • b

    bright-gpu-74537

    03/12/2023, 8:32 AM
    alright, thats fixed and working now... builder updated too, so test app above works also
  • f

    full-journalist-82607

    03/12/2023, 3:10 PM
    Great ! 👍
  • e

    early-butcher-76809

    03/13/2023, 5:13 PM
    The value set in a width parameter (in the html tag, not in css) is not parsed the same way as the css one. All the numbers are read as pixels if it does not end with %. For example : 50, 50px, 50vw and 50rm all give the same result. Is it intended ? Do we have to use css styling for units other than px or % or is it some kind of bug ? ^^
  • b

    bright-gpu-74537

    03/13/2023, 5:14 PM
    > Do we have to use css styling for units other than px or % you do... the % width is a special case (since its common)
  • e

    early-butcher-76809

    03/13/2023, 5:14 PM
    I see ! Thank you
  • b

    bright-gpu-74537

    03/13/2023, 5:15 PM
    np... probably make sense to document that 🙂
  • e

    early-butcher-76809

    03/13/2023, 5:20 PM
    Is there a technical reason to not use ``ValueTools.calcDimension(ValueTools.parse(string))`` ?
  • e

    early-butcher-76809

    03/13/2023, 5:20 PM
    For these fields (width and height)
  • b

    bright-gpu-74537

    03/13/2023, 5:22 PM
    i think the primary reason is because calcDimension came much later than normal width / height props. Also, it would be nice for the user to just go ".width = 100", though there may be some way around that - at some point, for version 2.0, i want to make a BUNCH of breaking changes... and this may very well be one of them 🙂
  • e

    early-butcher-76809

    03/13/2023, 5:24 PM
    I'll go the css way while waiting for the 2.0, then :P
  • e

    early-butcher-76809

    03/13/2023, 5:43 PM
    A scrollview in a scrollview doesn't work great on Heaps, do you have an idea where to look for to solve this ?
  • e

    early-butcher-76809

    03/13/2023, 5:43 PM
    (The same xml code works fine in the builder)
  • b

    bright-gpu-74537

    03/13/2023, 5:47 PM
    oh... not good... handleClipRect in the backend will be where you want to look... i feel like there is comment there to use a mask instead, maybe now is the time to try that out
  • b

    bright-gpu-74537

    03/13/2023, 5:48 PM
    oh, sorry, no, its using a mask already
  • e

    early-butcher-76809

    03/13/2023, 5:48 PM
    Gonna check, thanks
  • b

    bright-gpu-74537

    03/13/2023, 5:49 PM
    i feel like i would have tested this... :/
  • b

    bright-gpu-74537

    03/13/2023, 5:51 PM
    i am getting some crappy mouse issues though
  • b

    bright-gpu-74537

    03/13/2023, 5:52 PM
    what is that second scrollview?
  • e

    early-butcher-76809

    03/13/2023, 5:54 PM
    Maybe it's only text-related ? http://haxeui.org/builder/?4e72f5f0
  • b

    bright-gpu-74537

    03/13/2023, 5:55 PM
    or that font related somehow??
  • e

    early-butcher-76809

    03/13/2023, 5:55 PM
    If you scroll the parent, your child scroll doesn't bug ? :(
  • b

    bright-gpu-74537

    03/13/2023, 5:56 PM
    ah, it does
  • b

    bright-gpu-74537

    03/13/2023, 5:56 PM
    maybe that was happening to my example too, lemme try
  • b

    bright-gpu-74537

    03/13/2023, 5:57 PM
    yeah
1...159615971598...1687Latest