You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2014/06/06 15:02:44 UTC

svn commit: r1600878 - in /pivot: branches/2.0.x/tutorials/www/table-panes.xml site/trunk/deploy/tutorials/table-panes.html trunk/tutorials/www/table-panes.xml

Author: smartini
Date: Fri Jun  6 13:02:43 2014
New Revision: 1600878

URL: http://svn.apache.org/r1600878
Log:
clarified TablePane Column and Row sizing, and add a sample inside text

Modified:
    pivot/branches/2.0.x/tutorials/www/table-panes.xml
    pivot/site/trunk/deploy/tutorials/table-panes.html
    pivot/trunk/tutorials/www/table-panes.xml

Modified: pivot/branches/2.0.x/tutorials/www/table-panes.xml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tutorials/www/table-panes.xml?rev=1600878&r1=1600877&r2=1600878&view=diff
==============================================================================
--- pivot/branches/2.0.x/tutorials/www/table-panes.xml (original)
+++ pivot/branches/2.0.x/tutorials/www/table-panes.xml Fri Jun  6 13:02:43 2014
@@ -47,9 +47,15 @@ limitations under the License.
                 "n*" - relative size,
 				calculate the remaining space available in the column or in the row
 				(using all relative columns/row cells),
-				then split it in tot parts and finally reallocate the multiply that value by n.
+				then add up the total of the relative values, divide the space by that number and reallocate
+				the space for each column or row by multiplying the final value by each relative number.<br/>
+				For example if the total space is 300 pixels and the column widths are "1*", "2*" and "3*":<br/>
+				total relative value = 1 + 2 + 3 = 6<br/>
+				base value = 300 / 6 = 50<br/>
+				column widths = 1 * 50 = 50, 2 * 50 = 100, 3 * 50 = 150 (total 50 + 100 + 150 = 300)
             </li>
         </ul>
+		<br/>
 
         <p>
             Table panes support a number of styles that allow a caller to customize the arrangement

Modified: pivot/site/trunk/deploy/tutorials/table-panes.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/table-panes.html?rev=1600878&r1=1600877&r2=1600878&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/table-panes.html (original)
+++ pivot/site/trunk/deploy/tutorials/table-panes.html Fri Jun  6 13:02:43 2014
@@ -54,9 +54,15 @@ limitations under the License.
                 "n*" - relative size,
 				calculate the remaining space available in the column or in the row
 				(using all relative columns/row cells),
-				then split it in tot parts and finally reallocate the multiply that value by n.
+				then add up the total of the relative values, divide the space by that number and reallocate
+				the space for each column or row by multiplying the final value by each relative number.<br/>
+				For example if the total space is 300 pixels and the column widths are "1*", "2*" and "3*":<br/>
+				total relative value = 1 + 2 + 3 = 6<br/>
+				base value = 300 / 6 = 50<br/>
+				column widths = 1 * 50 = 50, 2 * 50 = 100, 3 * 50 = 150 (total 50 + 100 + 150 = 300)
             </li>
         </ul>
+		<br/>
 
         <p>
             Table panes support a number of styles that allow a caller to customize the arrangement

Modified: pivot/trunk/tutorials/www/table-panes.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/table-panes.xml?rev=1600878&r1=1600877&r2=1600878&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/table-panes.xml (original)
+++ pivot/trunk/tutorials/www/table-panes.xml Fri Jun  6 13:02:43 2014
@@ -47,9 +47,15 @@ limitations under the License.
                 "n*" - relative size,
 				calculate the remaining space available in the column or in the row
 				(using all relative columns/row cells),
-				then split it in tot parts and finally reallocate the multiply that value by n.
+				then add up the total of the relative values, divide the space by that number and reallocate
+				the space for each column or row by multiplying the final value by each relative number.<br/>
+				For example if the total space is 300 pixels and the column widths are "1*", "2*" and "3*":<br/>
+				total relative value = 1 + 2 + 3 = 6<br/>
+				base value = 300 / 6 = 50<br/>
+				column widths = 1 * 50 = 50, 2 * 50 = 100, 3 * 50 = 150 (total 50 + 100 + 150 = 300)
             </li>
         </ul>
+		<br/>
 
         <p>
             Table panes support a number of styles that allow a caller to customize the arrangement