myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1099495 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PopupRenderer.java
Date Wed, 04 May 2011 15:48:41 GMT
Author: lofwyr
Date: Wed May  4 15:48:40 2011
New Revision: 1099495

URL: http://svn.apache.org/viewvc?rev=1099495&view=rev
Log:
TOBAGO-860: Make Popup work with new LayoutManager
 - auto-position was computed wrong

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PopupRenderer.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PopupRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PopupRenderer.java?rev=1099495&r1=1099494&r2=1099495&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PopupRenderer.java
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PopupRenderer.java
Wed May  4 15:48:40 2011
@@ -96,7 +96,7 @@ public class PopupRenderer extends Layou
       popup.setLeft(page.getWidth().subtract(popup.getWidth()).divide(2));
     }
     if (popup.getTop() == null) {
-      popup.setTop(page.getHeight().subtract(popup.getWidth()).divide(2));
+      popup.setTop(page.getHeight().subtract(popup.getHeight()).divide(2));
     }
 
     writer.startElement(HtmlElements.DIV, popup);



Mime
View raw message