Skip to main content
New Participant
February 23, 2010
Question

Number of Items displayed

  • February 23, 2010
  • 2 replies
  • 323 views

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!!

    This topic has been closed for replies.

    2 replies

    New Participant
    March 1, 2010

    Thank you for your answer. Here comes the screenshot.

    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

    Inspiring
    February 28, 2010

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

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

    --

    Adam