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

    bright-gpu-74537

    06/03/2020, 10:59 PM
    its going to be .style and .computedStyle
  • u

    user

    06/03/2020, 11:02 PM
    ok, it explains why style.verticalAlign crashed my app
  • u

    user

    06/03/2020, 11:02 PM
    verticalAlign = "top" works better 😉
  • b

    bright-gpu-74537

    06/03/2020, 11:05 PM
    yeah, style is actually the computedStyle
  • b

    bright-gpu-74537

    06/03/2020, 11:05 PM
    and it may or may not exist instantly
  • u

    user

    06/03/2020, 11:26 PM
    Copy code
    ClassEx
         Class (with @:build macro)
           Component
  • u

    user

    06/03/2020, 11:26 PM
    could I set component.text on classEx.new( ) ?
  • u

    user

    06/03/2020, 11:27 PM
    on component is not still available and I must wait some "readyness"
  • b

    bright-gpu-74537

    06/03/2020, 11:28 PM
    im not sure i understand
  • b

    bright-gpu-74537

    06/03/2020, 11:29 PM
    you should be able to set .text though
  • u

    user

    06/03/2020, 11:30 PM
    A class1 which extend class2, class2 use a @build to define it components on the xml loaded with @build, component1 is component1 available on class1 constructor (after super() call of course) ?
  • b

    bright-gpu-74537

    06/03/2020, 11:30 PM
    if im understanding correctly, then yeah, it should be available
  • u

    user

    06/03/2020, 11:31 PM
    hmmmm
  • b

    bright-gpu-74537

    06/03/2020, 11:31 PM
    im heading to bed, but if it isnt working, then paste a small example and ill try tomorrow
  • u

    user

    06/03/2020, 11:32 PM
    I won't last long too 🙂
  • u

    user

    06/03/2020, 11:32 PM
    bye
  • b

    bright-gpu-74537

    06/03/2020, 11:32 PM
    night
  • u

    user

    06/03/2020, 11:33 PM
    forget it
  • u

    user

    06/03/2020, 11:33 PM
    I really must sleep too
  • u

    user

    06/03/2020, 11:34 PM
    I'm making stupid mistakes
  • c

    clever-oil-61353

    06/03/2020, 11:45 PM
    ya'll rest well
  • u

    user

    06/04/2020, 7:53 AM
    I finally didn't sleep a lot. I fought with another strange behaviour. 😉
  • u

    user

    06/04/2020, 7:54 AM
    Copy code
    <hbox width=100>
      <image resource=myasset.png width=100% verticalAlign=center />
    </hbox>
  • u

    user

    06/04/2020, 7:54 AM
    when you play with hide / show
  • u

    user

    06/04/2020, 7:54 AM
    sometimes image is centered, sometimes its left aligned
  • u

    user

    06/04/2020, 7:55 AM
    very strange
  • u

    user

    06/04/2020, 7:55 AM
    I don't know if it's not the verticalAlign which bug it or not
  • b

    bright-gpu-74537

    06/04/2020, 8:01 AM
    defo a bug of some description
  • u

    user

    06/04/2020, 8:14 AM
    Copy code
    style="horizontal-align: left;"
    do nothing
  • u

    user

    06/04/2020, 8:16 AM
    I'll isolate to see if it's the complex tree or not
1...260261262...1687Latest