Skip to content
This repository has been archived by the owner on Oct 14, 2019. It is now read-only.

ListSelector spawning menu far from button #350

Open
KnightMearh opened this issue Mar 29, 2016 · 1 comment
Open

ListSelector spawning menu far from button #350

KnightMearh opened this issue Mar 29, 2016 · 1 comment

Comments

@KnightMearh
Copy link

lime 2.9.1
openfl 3.6.1
actuate 1.8.6
hscript 2.0.5
haxeui 1.8.17
target: HTML5 (haven't tried mobile yet)

ListSelector always seems to imply "popup" mode. When I click the button, it spawns a list at 0,0 (partially offscreen). Each time I click the button, it spawns a new instance of the list at 0, 0. For each spawned list, when I select an option, it does dismiss and properly update the main dropdown button. Alternately, if I try to use DropDownList, it has the exact same effect as ListView. Are they different?

var drop:ListSelector = new ListSelector();
drop.method = "default";
drop.x = 200;
drop.y = 200;
drop.width = 200;
drop.height = 50;

for ( n in 0...20 ) {
    drop.dataSource.add( { text:"item"+n } );
}
@ianharrigan
Copy link
Owner

There are issues with version 1 of haxeui in that it doesnt work correctly for the HTML5 target. Some things work fine, but anything that has a scrollrect doesnt unfortunately. Its worth mentioning that V2 doesnt have this limitation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants