Pulldown menu's choices take up all of the card

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Tukcedo
Posts: 65
Joined: Fri Jun 27, 2014 9:43 pm

Pulldown menu's choices take up all of the card

Post by Tukcedo » Sat Sep 06, 2014 9:31 pm

Evening all!

I'm playing with various aspects of interfaces and I noticed that a pulldown menu is not behaving like I want. The pulldown is positioned in an area along the top of the card adjacent to a few buttons. No matter where I place the buttons, as soon as the pulldown is activated on Android, the "choices" take up the entire screen, rather than being nicely positioned below the pulldown itself. Needless to say the choices are actually quite short and font is small enough so there's no reason why the pulldown shouldn't be a bit more modest. I've tried playing with a number of Geometry settings but to no avail. Other than this annoying display thing, the choices work fine.

Anyone else seen this?
Michel J.L. van der Kleij
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Pulldown menu's choices take up all of the card

Post by Klaus » Sun Sep 07, 2014 1:58 pm

Yep, same on iOS!

Solution:
Do not use a PULLDOWN menu on mobile, use a nice and native "mobilepicklist" instead! :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Pulldown menu's choices take up all of the card

Post by jacque » Sun Sep 07, 2014 5:05 pm

Menus are implemented internally as stacks, and on mobile only one stack can be open at a time, and a stack always is the same size as the screen. That's why Klaus' method is the answer.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Tukcedo
Posts: 65
Joined: Fri Jun 27, 2014 9:43 pm

Re: Pulldown menu's choices take up all of the card

Post by Tukcedo » Mon Sep 08, 2014 10:58 am

Good old Klaus again he! ;-) Thanks Jacque and Klaus!!!
Michel J.L. van der Kleij
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl

Post Reply