Author: zoltan
Date: 2007-10-08 16:10:16 -0400 (Mon, 08 Oct 2007)
New Revision: 87123
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/text.cpp
Log:
2007-10-08 Zoltan Varga <[EMAIL PROTECTED]>
* text.cpp (OnPropertyChanged): Do a relayout if the Width property
changes and text wrapping is enabled.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-08 20:09:22 UTC (rev 87122)
+++ trunk/moon/src/ChangeLog 2007-10-08 20:10:16 UTC (rev 87123)
@@ -1,3 +1,8 @@
+2007-10-08 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * text.cpp (OnPropertyChanged): Do a relayout if the Width property
+ changes and text wrapping is enabled.
+
2007-10-08 Jeffrey Stedfast <[EMAIL PROTECTED]>
* mplayer.cpp (Open): If the media has video, load the first video
Modified: trunk/moon/src/text.cpp
===================================================================
--- trunk/moon/src/text.cpp 2007-10-08 20:09:22 UTC (rev 87122)
+++ trunk/moon/src/text.cpp 2007-10-08 20:10:16 UTC (rev 87123)
@@ -818,7 +818,10 @@
if (prop->type != Type::TEXTBLOCK) {
FrameworkElement::OnPropertyChanged (prop);
- return;
+ if ((prop == FrameworkElement::WidthProperty) &&
text_block_get_text_wrapping (this) != TextWrappingNoWrap)
+ dirty = true;
+ else
+ return;
}
if (prop == TextBlock::FontFamilyProperty) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches