Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Number of Items displayed

New Here ,
Feb 23, 2010 Feb 23, 2010

As simple as the problem seems, its driving me crazy.

I have a straight forward vertical cfmenu with about 15 items in it. For more than 10 items, cfmenu uses its scroll function. Since 15 items fit quite well into my design, I dont want the user to scroll, but display all of them. Is there a way to define, how many items are displayed, bevore scrolling ist used?

Thank you for your help!!

306
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 27, 2010 Feb 27, 2010

<cfmenu> doesn't intrinsically start scrolling @ 10 items.

Can you post some (simple, self-contained) code to demonstrate what you're seeing?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2010 Mar 01, 2010
LATEST

Thank you for your answer. Here comes the screenshot.

MenuScroll.png

The menu keeps ading the little "down arrow", so the user can scroll down to see the three menuitems that are not yet shown. But there is actually plenty of space to show all of the them.

The menu is generated as follows:

<cfmenu name="myMenu" type="horizontal" fontsize="12" bgcolor="##bcb592" font="Arial" selectedItemColor="##cdc69e">

The menuitems are generated through a cfloop, retruning the result of a db query. My cfmenuitem looks like this:

<cfmenuitem name="#objects.id#" display="#objects.name_d#" href="default.cfm?page=objekt.cfm&lang=#lang#&type=#type#&objectid=#objects.id#" />

Do you see what I mean?

Cheers

Michael

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources