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

           Summary: Setting Visibility do not always Invalidate
           Product: Moonlight
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: engine
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


on the minesweeper (http://blogs.telerik.com/demos/minesweeper/), you can flag
possible bombs using shift-click (or ctrl-click), but the flag does not appear
as it should on the flagged square.

the code responsible for flagging is:

mFlag.Visibility = (value) ? Visibility.Visible : Visibility.Collapsed;

nothing fancy, should work...

I guess it's an invalidating issue, cause applying this patch to moon solves
the issue :

Index: src/uielement.cpp
===================================================================
--- src/uielement.cpp   (revision 89918)
+++ src/uielement.cpp   (working copy)
@@ -134,6 +134,7 @@
                        g_warning ("Invalid value (%d) specified for
UIElement::VisibilityProperty.", v);
                        /* continue as default (VisibilityVisible) */
                case VisibilityVisible:
+                       FullInvalidate (true);
                        flags |= UIElement::RENDER_VISIBLE;
                        Invalidate ();
                        break;


Obviously, FullInvalidate is way too much...


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to