Sie sind nicht angemeldet.

1

Montag, 5. April 2021, 16:20

Combobox Plugin opening down below the screen

Hello!

I have a combobox that's in the bottom left corner of my screen, but on certain mobile devices (Like an iPhone 6) the combobox opens down below the screen instead of upwards as expected. See the sample code and screenshot below.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    <combobox name="Location" design="MyStyle" align="leftbottom" x="18" y="18" zorder="5" onloaded="locationsEnglish();" />
    <action name="locationsEnglish">
        layer[Location].removeall();
		layer[Location].addNamedItem("Floorplan","[b]FLOOR PLANS[/b]", ;);
        layer[Location].addNamedItem("Plan_1", "[b]Floorplan_1[/b]", loadscene(Floorplan_1, BLEND(1, linear)););
    </action>

    <combobox_design name="MyStyle" margin="0" open_close_speed="0.25">
		<style name="combobox_container_style"
            bgcolor="0x660000"
			bgalpha="0.8"
			bgborder="2 0xFFFFFF 1.0"
			bgroundedge="0"
			bgshadow=""
			height="50"
			/>
		<style name="combobox_marker_style"
			css="color:#FFFFFF;font-family:Roboto, sans-serif;font-size:1.3em"
			bg="false"
			txtshadow=""
			/>
		<style name="combobox_item_style"
			css="color:#FFFFFF;font-family:Roboto, sans-serif;font-size:1.3em"
			padding="7"
			bg="false"
			bgcolor="0xFFFFFF"
			bgalpha="1.0"
			bgroundedge="0"
			txtshadow=""
			onoveritem="set(bg,true); set(css, 'color:#660000;font-family:Roboto, sans-serif;font-size:1.3em');"
			onoutitem="set(bg,false); set(css, 'color:#FFFFFF;font-family:Roboto, sans-serif;font-size:1.3em');"
			/>
    </combobox_design>




Thanks for your help!

2

Freitag, 9. April 2021, 15:32

Klaus??

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

3

Freitag, 9. April 2021, 16:19

Hi

I tested your code and it works fine. Can you give us a link?


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

4

Freitag, 9. April 2021, 19:55

I teste it too and it worked in desktop and my android phone. May be device specific.

5

Montag, 12. April 2021, 20:38

Thanks for taking a look. I can't share a link unfortunately, but it seems to happen specifically on older 16x9 devices like the iPhone 6.