|
From: CVS C. to T. <the...@li...> - 2012-02-28 20:12:15
|
Revision: 681
http://themis.svn.sourceforge.net/themis/?rev=681&view=rev
Author: mark_hellegers
Date: 2012-02-28 20:12:04 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
- Fixed the rendering when encountering views that have less height than one of the previous siblings.
Modified Paths:
--------------
trunk/themis/modules/CSSRenderer/CSSView.cpp
Modified: trunk/themis/modules/CSSRenderer/CSSView.cpp
===================================================================
--- trunk/themis/modules/CSSRenderer/CSSView.cpp 2012-02-26 22:33:52 UTC (rev 680)
+++ trunk/themis/modules/CSSRenderer/CSSView.cpp 2012-02-28 20:12:04 UTC (rev 681)
@@ -751,7 +751,9 @@
mEndPoint = childView->GetEndPoint();
// Set the top of the remaining rect to the bottom of the child,
// because the space above is already taken by the child.
- restRect.top = rect2.bottom;
+ if (restRect.top < rect2.bottom) {
+ restRect.top = rect2.bottom;
+ }
if (rect2.right > restRect.right) {
// The child used more space than was available. We can use that space now as well
// for any remaining children.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|