[Mono-bugs] [Bug 493308] New: MaxDropDownItems property of a DropDown is ignored

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 8 13:33:47 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=493308


           Summary: MaxDropDownItems property of a DropDown is ignored
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: openSUSE 11.1
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bgmerrell at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Integration Test


Description of Problem:

This was found on Mono 2.4

The user should be able to use the MaxDropDownItems which "gets or sets the
maximum number of items to be shown in the drop-down portion of the ComboBox"
with a drop-down list (i.e., DropDownStyle is DropDown or DropDownList).  The
problem is that the MaxDropDownItems property does not appear to have any
affect on the drop-down list.

Steps to reproduce the problem:

1.  Run attached test case (written in IronPython) that has the
MaxDropDownItems property set to 3.
2.  Click on the ComboBox to open the drop-down list.

Actual Results:

The drop-down list opened in step 2 has more drop-down items than 3.  (Seven
items show for me, but that could change depending on your theme / font sizes.)

Expected Results:

The drop-down list should only show 3 items.

How often does this happen? 

Every time.

Comments:

While Googling the issue, I found some information on a Microsoft site that
might be useful: 
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=334192.
 Summarizing, it is some customer feedback saying that the MaxDropDownItems
property only works as expected on Vista if the IntegralHeight property of the
ComboBox is set to false.  Supposedly, setting the IntegralHeight property to
false is not required in XP.  I have verified that the MaxDropDownItems
property only works as expected on Vista if the IntegralHeight property is set
to false.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list