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

    bright-gpu-74537

    01/26/2023, 8:52 PM
    no difference to what?
  • a

    ambitious-knife-25690

    01/26/2023, 8:53 PM
    yeah, i tried fitwidth (weird api, want to ask jer about that)
  • a

    ambitious-knife-25690

    01/26/2023, 8:53 PM
    as in, no changes to the result
  • b

    bright-gpu-74537

    01/26/2023, 8:53 PM
    hardcoding to 100 didnt do anything?
  • a

    ambitious-knife-25690

    01/26/2023, 8:53 PM
    correct
  • a

    ambitious-knife-25690

    01/26/2023, 8:53 PM
    i hardcoded to 200 to make sure
  • b

    bright-gpu-74537

    01/26/2023, 8:53 PM
    is this function being called?
  • a

    ambitious-knife-25690

    01/26/2023, 8:53 PM
    it is
  • b

    bright-gpu-74537

    01/26/2023, 8:54 PM
    dunno then.. seems like maybe Text needs a flag to say "dont autosize"?
  • b

    bright-gpu-74537

    01/26/2023, 8:57 PM
    @editable({ implicitSize: true })
  • b

    bright-gpu-74537

    01/26/2023, 8:57 PM
    ?
  • a

    ambitious-knife-25690

    01/26/2023, 8:59 PM
    oh, but that's on the visual itself 🤔
  • a

    ambitious-knife-25690

    01/26/2023, 8:59 PM
    lemme see if i can add that in a haxeui file
  • b

    bright-gpu-74537

    01/26/2023, 8:59 PM
    still probably applies, no?
  • b

    bright-gpu-74537

    01/26/2023, 8:59 PM
    also, btw, seems you dont need to call computeContent explicity
  • b

    bright-gpu-74537

    01/26/2023, 9:00 PM
    Copy code
    haxe
        override function get_width():Float {
            if (contentDirty) computeContent();
            return super.get_width();
        }
  • a

    ambitious-knife-25690

    01/26/2023, 9:00 PM
    if i don't i get no black or red box
  • b

    bright-gpu-74537

    01/26/2023, 9:00 PM
    fair enough
  • a

    ambitious-knife-25690

    01/26/2023, 9:00 PM
    not sure why
  • a

    ambitious-knife-25690

    01/26/2023, 9:01 PM
    adding that macro to the text field doesn't seem to change things
  • b

    bright-gpu-74537

    01/26/2023, 9:02 PM
    have you tried
    surface.fitWidth = 200
    ?
  • a

    ambitious-knife-25690

    01/26/2023, 9:03 PM
    i haven't!
  • b

    bright-gpu-74537

    01/26/2023, 9:03 PM
    looking at the code in ceramics Text.hx im pretty sure thats your prop
  • a

    ambitious-knife-25690

    01/26/2023, 9:03 PM
    that's a good idea 😄
  • a

    ambitious-knife-25690

    01/26/2023, 9:03 PM
    dang it lol
  • a

    ambitious-knife-25690

    01/26/2023, 9:04 PM
    same result
  • b

    bright-gpu-74537

    01/26/2023, 9:04 PM
    oh, then im lost
  • a

    ambitious-knife-25690

    01/26/2023, 9:04 PM
    same, i guess another one i'll peg for later 😂
  • e

    elegant-twilight-61392

    01/26/2023, 10:25 PM
    ok well the colors are wrong but it draws solid backgrounds now
  • e

    elegant-twilight-61392

    01/26/2023, 10:27 PM
    is the color preview in vscode supposed to match whatever format haxeui tries to use?
1...142414251426...1687Latest