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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=362749#c1


Andy Hume <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
            Summary|PropertyGrid: date-time editor isn't 
initialised|[Regression] PropertyGrid: date-time editor
                   |with the current date value                     |isn't 
initialised with the current date value




--- Comment #1 from Andy Hume <[EMAIL PROTECTED]>  2008-02-21 07:33:42 MST ---
A minor regression, as the user *can* set a date; it's just that the original
date won't be pre-selected on drop-down.


This was caused by the change in r95530 -- the MonthCalendar is not initialised
now (well it is only initialised when an illegal date is present!).

Patch below.

The second half of the report is confirmed to be a problem in MonthCalendar,
bug and repro to follow.

[[
Index: DateTimeEditor.cs
===================================================================
--- DateTimeEditor.cs   (revision 96283)
+++ DateTimeEditor.cs   (working copy)
@@ -71,6 +71,8 @@
                                        editContent = (DateTime)value;
                                        if (editContent > control.MaxDate ||
editContent < control.MinDate)
                                                control.SelectionStart =
DateTime.Today;
+                                       else
+                                               control.SelectionStart =
editContent;

                                        editorService.DropDownControl
(control);
]]
Also the file needs its SVN line-ending property set.

Code is contributed under MIT/X11 license.


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