[Jaws-commits] r13260 - trunk/jaws/html/include/Jaws/Widgets

afz at jaws-project.com afz at jaws-project.com
Sat Aug 4 13:06:35 UTC 2012


Author: afz
Date: 2012-08-04 13:06:35 +0000 (Sat, 04 Aug 2012)
New Revision: 13260

Modified:
   trunk/jaws/html/include/Jaws/Widgets/CKEditor.php
   trunk/jaws/html/include/Jaws/Widgets/TextArea.php
   trunk/jaws/html/include/Jaws/Widgets/TinyMCE.php
Log:
Fixed displaying empty gap between label and editor

Modified: trunk/jaws/html/include/Jaws/Widgets/CKEditor.php
===================================================================
--- trunk/jaws/html/include/Jaws/Widgets/CKEditor.php	2012-08-04 10:14:45 UTC (rev 13259)
+++ trunk/jaws/html/include/Jaws/Widgets/CKEditor.php	2012-08-04 13:06:35 UTC (rev 13260)
@@ -208,11 +208,12 @@
         $this->_Language = $GLOBALS['app']->GetLanguage();
         $this->_Direction = _t('GLOBAL_LANG_DIRECTION');
 
-        $this->_Label =& Piwi::CreateWidget('Label', $label, $this->TextArea);
-
         // Add container
         $this->_Container =& Piwi::CreateWidget('VBox');
-        $this->_Container->PackStart($this->_Label);
+        if (!empty($label)) {
+            $this->_Label =& Piwi::CreateWidget('Label', $label, $this->TextArea);
+            $this->_Container->PackStart($this->_Label);
+        }
         $this->_Container->PackStart($this->TextArea);
 
         parent::init();

Modified: trunk/jaws/html/include/Jaws/Widgets/TextArea.php
===================================================================
--- trunk/jaws/html/include/Jaws/Widgets/TextArea.php	2012-08-04 10:14:45 UTC (rev 13259)
+++ trunk/jaws/html/include/Jaws/Widgets/TextArea.php	2012-08-04 13:06:35 UTC (rev 13260)
@@ -74,12 +74,14 @@
         $this->_ToolbarControl->SetID('toolbar_'.$name);
         $this->TextArea =& Piwi::CreateWidget('TextArea', $name, $value, '', '14', '106');
         $this->TextArea->SetStyle('width: 99%;');
-        $this->_Label =& Piwi::CreateWidget('Label', $label, $this->TextArea);
 
         // Add container
         $this->_Container =& Piwi::CreateWidget('VBox');
         $this->_Container->AddFile('include/Jaws/Widgets/TextArea.js');
-        $this->_Container->PackStart($this->_Label);
+        if (!empty($label)) {
+            $this->_Label =& Piwi::CreateWidget('Label', $label, $this->TextArea);
+            $this->_Container->PackStart($this->_Label);
+        }
         $this->_Container->PackStart($this->_ToolbarControl);
         $this->_Container->PackStart($this->TextArea);
 

Modified: trunk/jaws/html/include/Jaws/Widgets/TinyMCE.php
===================================================================
--- trunk/jaws/html/include/Jaws/Widgets/TinyMCE.php	2012-08-04 10:14:45 UTC (rev 13259)
+++ trunk/jaws/html/include/Jaws/Widgets/TinyMCE.php	2012-08-04 13:06:35 UTC (rev 13260)
@@ -121,11 +121,13 @@
 
         $this->TextArea =& Piwi::CreateWidget('TextArea', $name, $this->_Value, '', '14');
         $this->setClass($name);
-        $this->_Label =& Piwi::CreateWidget('Label', $label, $this->TextArea);
 
         // Add container
         $this->_Container =& Piwi::CreateWidget('VBox');
-        $this->_Container->PackStart($this->_Label);
+        if (!empty($label)) {
+            $this->_Label =& Piwi::CreateWidget('Label', $label, $this->TextArea);
+            $this->_Container->PackStart($this->_Label);
+        }
         $this->_Container->PackStart($this->TextArea);
 
         $this->_Gadget = $gadget;



More information about the Jaws-commits mailing list