You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by no...@apache.org on 2011/03/14 13:55:36 UTC

svn commit: r1081353 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java

Author: noelgrandin
Date: Mon Mar 14 12:55:36 2011
New Revision: 1081353

URL: http://svn.apache.org/viewvc?rev=1081353&view=rev
Log:
PIVOT-715 Background color not painted properly in TextPane

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java?rev=1081353&r1=1081352&r2=1081353&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextPaneSkinElementView.java Mon Mar 14 12:55:36 2011
@@ -147,7 +147,7 @@ abstract class TextPaneSkinElementView e
                 Color styledBackgroundColor = getStyledBackgroundColor();
                 if (styledBackgroundColor != null) {
                     nodeViewGraphics.setColor(styledBackgroundColor);
-                    nodeViewGraphics.fillRect(nodeViewBounds.x, nodeViewBounds.y, nodeViewBounds.width, nodeViewBounds.height);
+                    nodeViewGraphics.fillRect(0, 0, nodeViewBounds.width, nodeViewBounds.height);
                 }
 
                 // NOTE We don't clip here because views should generally