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


           Summary: AutoSize defaults to true for a RichTextBox
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: ASSIGNED
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


AutoSize defaults to true for a RichTextBox, when it should be false.

An example of a visual test is the situation where multiline is false and a
font is assigned to the whole RichTextBox - the RichTextBox is re-sized if
AutoSize is true, but not otherwise.. e.g.

using System.Windows.Forms;
using System.Drawing;
using System;
namespace tbtests {
        static class Program {
                static RichTextBox rtb = null;

                static void Main ()
                {
                        Form form = new Form ();
                        rtb = new RichTextBox ();

                        rtb.Dock = DockStyle.Bottom;
                        rtb.Height = 200;
                        rtb.Multiline = false;

                        rtb.SelectionFont = new Font
(FontFamily.GenericSansSerif, 72f);
                        rtb.AppendText ("Big");
                        rtb.SelectionFont = new Font
(FontFamily.GenericSansSerif, 12f);
                        rtb.AppendText ("Small");

                        rtb.Font = new Font (FontFamily.GenericSansSerif, 24f);

                        form.Controls.Add (rtb);

                        Application.Run (form);
                }
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to