haxeui / haxeui-html5

The HTML5 backend of the HaxeUI framework -
http://haxeui.org
MIT License
28 stars 14 forks source link

something wrong with ListView #17

Closed R3D9477 closed 7 years ago

R3D9477 commented 7 years ago

Expected Behavior

simple page with one ListView

Current Behavior

blank page err2

Test app / minimal test case

sample

Your Environment

Linux Mint 18.1 x64 Haxe 3.4.0 haxeui-core from git haxeui-html5 from git Firefox 51.0.1

Thanks.

aW4KeNiNG commented 7 years ago

Can you try to add contentWidth?

<listview width="300" height="100%" contentWidth="100%">?

R3D9477 commented 7 years ago

@aW4KeNiNG tried just now, but it doesn't effect

R3D9477 commented 7 years ago

@aW4KeNiNG can you check does it working for you?

ianharrigan commented 7 years ago

I'll be back on Sunday also, so I can try then

ianharrigan commented 7 years ago

Can this be retested? I did make a fix, but im not sure its related. Your app (like the dropdown) works fine for me...

image

ianharrigan commented 7 years ago

Ok, i think ive found it. I seems the following styles need to in the index.html:

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Arial';
    font-size: 13px;
    margin: 0;
    width: 100%;
    height: 100%;
}

Ill open a new issue about this, but can close if it works for you.

Cheers, Ian

R3D9477 commented 7 years ago

thanks, it works fine!