Permalink
Browse files

- change width of fieldset / legend tags

- update dependencies
- update changelog
- prepare for release


git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm_Renderer_Tableless/trunk@234349 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
Mark Wiesemann
Mark Wiesemann committed Apr 23, 2007
1 parent a331046 commit 2c03ee41eea6a36c8b1255337eaf83878ffa9da1
Showing with 24 additions and 19 deletions.
  1. +2 −2 data/stylesheet.css
  2. +2 −2 docs/examples/contact.php
  3. +20 −15 package2.xml
View
@@ -10,7 +10,7 @@ form fieldset {
float: left;
border: 0;
margin: 0;
- width: 560px;
+ width: 100%;
}
form fieldset.hidden {
border: 0;
@@ -19,7 +19,7 @@ form fieldset legend {
white-space: nowrap;
background-color: #CCCCCC;
font-weight: bold;
- width: 560px;
+ width: 100%;
padding: 1px;
display: block;
}
@@ -24,7 +24,7 @@
float: left;
border: 0;
margin: 0;
- width: 560px;
+ width: 100%;
}
form fieldset.hidden {
border: 0;
@@ -33,7 +33,7 @@
white-space: nowrap;
background-color: #CCCCCC;
font-weight: bold;
- width: 560px;
+ width: 100%;
padding: 1px;
display: block;
}
View
@@ -19,27 +19,33 @@ http://pear.php.net/dtd/package-2.0.xsd">
<email>wiesemann@php.net</email>
<active>yes</active>
</lead>
- <date>2006-12-04</date>
- <time>21:30:00</time>
+ <date>2007-04-23</date>
+ <time>19:20:00</time>
<version>
- <release>0.4.3</release>
- <api>0.4.0</api>
+ <release>0.5.0</release>
+ <api>0.5.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license>New BSD</license>
<notes>
-The "height: 1px;" style was removed from "form fieldset li" block in the
-stylesheet to achieve layout compatibility with Windows Internet Explorer 7.
+It is now possible to add attributes to the fieldset tags. A short example:
-WARNING: This breaks layout compatibility with Firefox 1.x browsers (Firefox 2.0
-still works as expected). The FAQ for this package in the PEAR manual contains
-solutions for getting Firefox 1.x compatibility.
+$form->addElement('header', 'header', 'A new fieldset');
+$header =& $form->getElement('header');
+$header->setAttribute('style', 'border: 2px dashed blue;');
-(thanks to Brett Bieber and Alvin Woon for investigation on the layout issues
-and the provided solutions)
+(Setting the attributes via addElement() is not possible for 'header' elements.)
+
+To add the attributes to the fieldset tags, the template variable {attributes}
+was added into the "openFieldsetTemplate".
+
+To avoid problems with nested fieldsets, the fieldset and the legend tag have
+now "100%" instead of "560px" width. If you want to use nested fieldsets, you
+should consider re-enabling the border in the "form fieldset" block of the
+stylesheet.
</notes>
<contents>
<dir name="/">
@@ -60,21 +66,20 @@ and the provided solutions)
<dir name="data">
<file name="stylesheet.css" role="data" />
</dir> <!-- /data -->
- <file name="LICENSE" role="doc" />
</dir> <!-- / -->
</contents>
<dependencies>
<required>
<php>
- <min>4.2</min>
+ <min>4.3</min>
</php>
<pearinstaller>
- <min>1.4.9</min>
+ <min>1.5.0</min>
</pearinstaller>
<package>
<name>HTML_QuickForm</name>
<channel>pear.php.net</channel>
- <min>3.2.6</min>
+ <min>3.2.7</min>
</package>
</required>
</dependencies>

0 comments on commit 2c03ee4

Please sign in to comment.