Problem with ListView and TableView

This is working fine with haxeui-html5 backend but not with haxeui-openfl backend.

<tableview width="250" height="200">
         <header>
             <column id="colA" text="Column A" width="75" />
             <column id="colB" text="Column B" width="200" />
             <column id="colC" text="Column C" width="75" />
         </header>
         <data>
            <item colA="A1" colB="B1" colC="C1" />
            <item colA="A2" colB="B2" colC="C2" />
            <item colA="A3" colB="B3" colC="C3" />
            <item colA="A4" colB="B4" colC="C4" />
             <item colA="A5" colB="B5" colC="C5" />
         </data>
    </tableview>

Same issue with ListView.

Cheers,
Domi

1 Like

Nice catch - listview was working fine for me, but there was a bug in tableview, well, itemrenderer really that should be fixed now:

image

Can you pull latest haxeui-core and let me know if that works? Ill push another release to haxelib if it does.

Cheers,
Ian

Hm i think i am doing something wrong… i pulled the latest version from haxeui-core but my TableView and ListView looks like this:

Unbenannt588 Unbenannt589

Cheers,
Domi

A normal ListView looks good.
I think there is a problem with a custom ListView with a itemrenderer.

Cheers,
Domi

Can you post your code? Its likely that i’ve broken something since ive changed some parts on item renderer, so its probably to do with that.

Thanks,
Ian

Unbenannt592

Code is:

<listview id="list" width="200" height="150" selectedIndex="1">
     <item-renderer layoutName="horizontal" width="100%">
               <checkbox id="complete" />
               <label width="100%" id="item" />
               <image id="image" />
     </item-renderer>
     <data>
          <item complete="false" item="Item 1" image="assets/pictures/tickblue.png" />
          <item complete="true" item="Item 2" image="haxeui-core/styles/default/haxeui_tiny.png" />
          <item complete="true" item="Item 3" image="haxeui-core/styles/default/haxeui_tiny.png" />
          <item complete="false" item="Item 4" image="haxeui-core/styles/default/haxeui_tiny.png" />
          <item complete="true" item="Item 5" image="haxeui-core/styles/default/haxeui_tiny.png" />
          <item complete="true" item="Item 6" image="haxeui-core/styles/default/haxeui_tiny.png" />
          <item complete="false" item="Item 7" image="haxeui-core/styles/default/haxeui_tiny.png" />
          <item complete="true" item="Item 8" image="haxeui-core/styles/default/haxeui_tiny.png" />
          <item complete="false" item="Item 9" image="haxeui-core/styles/default/haxeui_tiny.png" />
     </data>
</listview>
<listview id="lv1" width="200" height="150" selectedIndex="0">
      <data>
         <item text="Item 1" />
         <item text="Item 2" />
         <item text="Item 3" />
         <item text="Item 4" />
         <item text="Item 5" />
         <item text="Item 6" />
         <item text="Item 7" />
         <item text="Item 8" />
         <item text="Item 9" />
     </data>
</listview>

Same thing with TableView.

Cheers,
Domi

1 Like

Ok, so this is weird… Ive just compiled that xml and it works

image

You sure you have the latest version of haxeui-core, haxeui-openfl etc? What happens if you remove your styles?

Ian

EDIT: i like your scrollbars :slight_smile:

There was a problem with my haxeui-core… i reinstalled it and now it works fine.

Thanks for the scrollbars.

Cheers,
Domi

1 Like