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

    bright-gpu-74537

    12/02/2019, 6:12 PM
    im not quite sure i follow what you mean
  • u

    user

    12/02/2019, 6:20 PM
    I will share a screenshot
  • u

    user

    12/02/2019, 6:24 PM
    The issue I was talking about is the scrollview doesnt go to the bottom i.e. the dark line doesnt go to the gray line.
  • u

    user

    12/02/2019, 6:25 PM
    @bright-gpu-74537 ^^^^^^
  • u

    user

    12/02/2019, 6:33 PM
    The number of items in a scrollview will affect the scrollview height
  • b

    bright-gpu-74537

    12/03/2019, 6:44 AM
    OK, so you want to turn off autosizing?
  • u

    user

    12/03/2019, 12:18 PM
    So autosizing adapts to the components contents ? Or should autosizing adapt to other components around it and not its contents ? If I deactivated autosizing it would take the rest of the span of available space I guess from your response. But then when I would add another component after that component the new component would be hidden by the listview?( I will test)
  • b

    bright-gpu-74537

    12/03/2019, 12:50 PM
    autosizing adapts to the contents of the component
  • b

    bright-gpu-74537

    12/03/2019, 12:51 PM
    if you wanted it to adapt to the size if its parent, you could use a % w/h...
  • b

    bright-gpu-74537

    12/03/2019, 12:52 PM
    although that would "size automatically" (based on the parents size) its not, from haxeui perspective, what it considers "auto size", which as mentioned, is the size of the contents of the component, eg:
  • b

    bright-gpu-74537

    12/03/2019, 12:53 PM
    Copy code
    xml
    <vbox>
        <vbox>
            <button  />
            <button  />
            <button  />
        </vbox>
    </vbox>
  • b

    bright-gpu-74537

    12/03/2019, 12:53 PM
    all the vbox's will be the size of three buttons (plus spacing / padding)
  • b

    bright-gpu-74537

    12/03/2019, 12:54 PM
    Copy code
    xml
    <vbox height="100%">
        <vbox height="100%">
            <button  />
            <button  />
            <button  />
        </vbox>
    </vbox>
  • b

    bright-gpu-74537

    12/03/2019, 12:54 PM
    the vboxes will take up all available space, buttons will remain the same (autosized) size (ie, sized based on the contents of the button)
  • b

    bright-gpu-74537

    12/03/2019, 12:55 PM
    Copy code
    xml
    <vbox height="100%">
        <vbox height="100%">
            <button height="33%"  />
            <button height="34%"  />
            <button height="33%"  />
        </vbox>
    </vbox>
  • b

    bright-gpu-74537

    12/03/2019, 12:55 PM
    vboxes will take up all available space, buttons will take approx 1/3 of the height each
  • b

    bright-gpu-74537

    12/03/2019, 12:56 PM
    in that last example, nothing is "autosized" (in the way haxeui defines autosized)
  • b

    bright-gpu-74537

    12/03/2019, 12:56 PM
    but they will all resize automatically... 😄
  • u

    user

    12/03/2019, 1:57 PM
    Ok. I think thats what was confusing me :P autoresizing
  • u

    user

    12/03/2019, 1:57 PM
    Its logical.
  • n

    nutritious-boots-87264

    12/03/2019, 9:15 PM
    Any tips for dealing with Keyboard events? I tried registering KEY_DOWN handled to top widget and a few more but not getting anything. I guess the events get eaten by something.
  • n

    nutritious-boots-87264

    12/03/2019, 10:10 PM
    Seems to be working only when focus is on a text input widget, that's somewhat opposite of what I expected.
  • u

    user

    12/03/2019, 11:13 PM
    @nutritious-boots-87264what framework are you using ?
  • n

    nutritious-boots-87264

    12/04/2019, 11:35 AM
    html5. After further investigation it seems it is caused by how keyboard events are handled by browser. There is no widget with focus so only way for getting the event is adding event handler to document. Good enough for global shortcuts but will get annoying if I decide to add shortcuts unique to each page in TabView. Maybe there is way of marking container as grabbing keyboard focus?
  • b

    bright-gpu-74537

    12/04/2019, 5:37 PM
    should non focusable items be able to have specific keyboard handlers?
  • b

    bright-gpu-74537

    12/04/2019, 5:38 PM
    Maybe im missing the use case, but it seems strange to have a bunch of vboxes all having keyhandlers
  • s

    stale-house-89863

    12/05/2019, 4:42 PM
    From curious, There are advantages using HaxeUI instead of ReactNative?
  • a

    ambitious-knife-25690

    12/05/2019, 4:56 PM
    @stale-house-89863 It depends on your needs
  • a

    ambitious-knife-25690

    12/05/2019, 4:56 PM
    For mobile i'd pick #501539217327915038-native
  • s

    stale-house-89863

    12/05/2019, 4:58 PM
    Hm.. I see, why not also for desktop? RN less mature for desktop and HaxeUI less mature for mobile?
1...152153154...1687Latest