From: <ken...@us...> - 2009-02-09 21:02:32
|
Revision: 1228 http://andro.svn.sourceforge.net/andro/?rev=1228&view=rev Author: kendowns Date: 2009-02-09 21:02:23 +0000 (Mon, 09 Feb 2009) Log Message: ----------- Put in little feature, that will likely be undocumented for awhile, that makes any androHTML element scrollable. Did for specific client, will consider what to do with it later. Modified Paths: -------------- trunk/andro/lib/androLib.php Modified: trunk/andro/lib/androLib.php =================================================================== --- trunk/andro/lib/androLib.php 2009-02-09 21:00:28 UTC (rev 1227) +++ trunk/andro/lib/androLib.php 2009-02-09 21:02:23 UTC (rev 1228) @@ -1912,6 +1912,13 @@ $this->hp['x6firstFocus']='Y'; } + # KFD BLUNT WEAPON. This really is meant for very simple + # elements where you just make it scrollable + function scrollable($height='') { + $this->addStyle('overflow-y: scroll'); + $this->addStyle("height: $height"); + } + /****m* androHtml/TbodyRows * @@ -1926,7 +1933,7 @@ * array $options - striping options * ******/ - function TbodyRows($rows,$options=array()) { + function &TbodyRows($rows,$options=array()) { $rowIdPrefix='row_'; $stripe = $stripe1 = $stripe2 = $stripe3 = 0; if(a($options,'stripe',0)>0) { @@ -2066,8 +2073,8 @@ * androHtmlDetail * ******/ - function &addDetail($table_id,$complete=false,$height=300) { - $newDetail = new androHTMLDetail($table_id,$complete,$height); + function &addDetail($table_id,$complete=false,$height=300,$p='') { + $newDetail = new androHTMLDetail($table_id,$complete,$height,$p); $this->addChild($newDetail); return $newDetail; } @@ -3314,7 +3321,6 @@ $colsFK[$chd] = $par; } } - # Put in a div that will be the inner box # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |