Hi,
I've created two comboboxes.
One on top of the other.
The top one shows only a few items on dropdown.
The second one (below), shows much more items.
Is there a way to specify how many items to show or the size of the dropdown?
Thanks!
Hi,
I've created two comboboxes.
One on top of the other.
The top one shows only a few items on dropdown.
The second one (below), shows much more items.
Is there a way to specify how many items to show or the size of the dropdown?
Thanks!
Try to limit the height of tearing.
In the style of "combobox_container_style" , write
onclick="combobox_onclick_event(185);"
185 - max height(example).
combobox.xml line 206. write as follows:
combobox.xml line 453. add the line:
453. clamp(openheight,0,%1);
454. tween(global.layer[get(cbname)].height, get(openheight), get(cb.open_close_speed));
THANKS
I don't know why, but it did nothing for me.
I tried inside and outside a parent layer.
The problem occurs only when the combobox is children of a layer.
And I have 2 of them as children. One opens much more than the other. :/
Here the drop-down list "List of hotspot" is made on this principle. It's the child layer.
You wrote "onclick" in the style that you use for combobox?
Yes I did.
I will try to leave only one combobox inside the parent to see if it solves.
Doesn't work either.
It worked alone, but suddenly it stops showing all options when I add other comboboxes to the scene.
Also I've noticed that on mobile there's a blue arrow that is ugly. Can I change it?
AND.. the most important: I can't select all the options on mobile.
They don't appear in total, even when scrolling. I have to pull the fingers far from the original touch point to see the last options and, when I release the finger, it goes up one or two options in the list.
The use will never be able to select the last ones in mobile.
Why doest it happen?
Thanks!
My link doesn't work for you either?
Although in your example it doesn't show all options when opened, at least on mobile I can scroll and see all the options.
On mine I can only do this in desktop. On mobile I can't see/access all options. :(
Try this
onclick="combobox_onclick_event(name,185);"
onklikk - prescribe not in style, but in the layer of combobox
name - name of the combobox
<action name="combobox_onclick_event">
combobox_openlist(%1,%2);
</action>
Nothing works! :(
In this example , the height is limited for static and dynamic combobox.
Just need to prescribe onklik each combobox.
Thanks, San!
I decided to get your code (that worked in an empty file) and started from scratch.
I did it differently, but it's working now!! Thanks!!!
Do you know how to change that blue arrow when it's opened?
The grey one is beautiful, but when opened is ugly. I wish it could only rotate that beautiful down arrow. :)
Thanks!!
Don’t have an account yet? Register yourself now and be a part of our community!