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

    bright-gpu-74537

    01/26/2023, 8:29 PM
    i think probably it would all be fine if you didnt call that "calcContent"
  • b

    bright-gpu-74537

    01/26/2023, 8:31 PM
    you will need to call it sometimes, but conditionally when the label is autosized (this is all guesswork on my part btw)
  • a

    ambitious-knife-25690

    01/26/2023, 8:31 PM
    no calccontent and with validatedisplay
  • b

    bright-gpu-74537

    01/26/2023, 8:31 PM
    can you make the text surface have a background color?
  • b

    bright-gpu-74537

    01/26/2023, 8:31 PM
    just so we can see its bounds
  • a

    ambitious-knife-25690

    01/26/2023, 8:32 PM
    the text component's color prop only affects the text
  • b

    bright-gpu-74537

    01/26/2023, 8:32 PM
    not the label, the actual ceramic text surface
  • b

    bright-gpu-74537

    01/26/2023, 8:32 PM
    fair enough
  • a

    ambitious-knife-25690

    01/26/2023, 8:32 PM
    lemme just add a quad to the surfaces xywh
  • a

    ambitious-knife-25690

    01/26/2023, 8:35 PM
    okay, it has no bounds without compute 😄
  • b

    bright-gpu-74537

    01/26/2023, 8:35 PM
    hmmm, well, what about with compute and the validateDisplay?
  • a

    ambitious-knife-25690

    01/26/2023, 8:35 PM
    with compute
  • b

    bright-gpu-74537

    01/26/2023, 8:35 PM
    so yeah, the width is "wrong"... you shouldnt be seeing any red really
  • a

    ambitious-knife-25690

    01/26/2023, 8:35 PM
    with or without validateDisplay, the above image doesn't look different
  • b

    bright-gpu-74537

    01/26/2023, 8:36 PM
    i guess you need to find out how to make a ceramic Text a fixed width
  • a

    ambitious-knife-25690

    01/26/2023, 8:42 PM
    oh, hmm
  • a

    ambitious-knife-25690

    01/26/2023, 8:42 PM
    Copy code
    hx
    // surface.x = _left;
    // surface.y = _top;
  • a

    ambitious-knife-25690

    01/26/2023, 8:42 PM
    I was setting the text surface to those values in validatePosition
  • a

    ambitious-knife-25690

    01/26/2023, 8:42 PM
    i'm guessing that's not the correct values to be setting
  • b

    bright-gpu-74537

    01/26/2023, 8:44 PM
    the point is that you shouldnt be seeing any red here... the ceramic text display should be taking up the entire width of the label
  • a

    ambitious-knife-25690

    01/26/2023, 8:45 PM
    Oh....
  • b

    bright-gpu-74537

    01/26/2023, 8:45 PM
    so your x/y values are right (0x0) your height value seems fine (text height), your width isnt right, its the width of the text, not a fixed width
  • a

    ambitious-knife-25690

    01/26/2023, 8:45 PM
    i think there might be an option for that!
  • a

    ambitious-knife-25690

    01/26/2023, 8:48 PM
    ah nvm
  • b

    bright-gpu-74537

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

    ambitious-knife-25690

    01/26/2023, 8:48 PM
    made no difference to the black box or the red
  • b

    bright-gpu-74537

    01/26/2023, 8:49 PM
    lets see your textdisplayimpl.hx
  • b

    bright-gpu-74537

    01/26/2023, 8:51 PM
    dunno then, seems like its always autosizing... what happens if you hardcode "surface.width = 100" (or some value) in validateDisplay?
  • b

    bright-gpu-74537

    01/26/2023, 8:52 PM
    what about "surface.fitWidth = true/false"?
  • a

    ambitious-knife-25690

    01/26/2023, 8:52 PM
    no difference
1...142314241425...1687Latest