[Mono-bugs] [Bug 469790] New: fill button overlap menu

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 27 09:46:26 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=469790


           Summary: fill button overlap menu
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: davelzg at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Opera/9.63 (Windows NT 5.1; U; Edition IBIS; zh-cn)
Presto/2.1.1

following F# code behaves differently on windows/linux:

#light
open System
open System.IO
open System.Windows.Forms
open Printf

//Create the forms to be used
let main = new Form()

//Set the program attributes
main.Text <- "Main"
main.Visible <- true

//Start making the GUI for the main window
let menu = main.Menu <- new MainMenu()
let mnuFile = main.Menu.MenuItems.Add("&File")
let mnuAbout = main.Menu.MenuItems.Add("&About")
let mnuFile_Quit = new MenuItem("&Quit")
let mnuAbout_About = new MenuItem("&About")
mnuFile.MenuItems.Add(mnuFile_Quit)
mnuAbout.MenuItems.Add(mnuAbout_About)

//Start defining the callbacks and such
mnuFile_Quit.Click.Add(fun _ -> main.Close())
mnuAbout_About.Click.Add(fun _ -> printf "F# is cool!")
let btnOMFG = new Button()
btnOMFG.Dock <- DockStyle.Fill
btnOMFG.Text <- "I CAN HAS CLICK?!"
main.Controls.Add(btnOMFG)
btnOMFG.Click.Add(fun _ -> main.Close())

#if COMPILED
[]
do Application.Run(main)
#endif


Reproducible: Always

Actual Results:  
under linux , the menu is overlapped

Expected Results:  
menu should be reserved as a part not overlapped

-- 
Configure bugmail: https://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