Fixed bug #17041: CSH tooltip often gets in the way of the field it is supposed to...
authorSteffen Gebert <steffen.gebert@typo3.org>
Tue, 18 Jan 2011 21:55:55 +0000 (21:55 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Tue, 18 Jan 2011 21:55:55 +0000 (21:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10127 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/js/extjs/contexthelp.js

index 44d1f7e..3e5ba6d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-18  Steffen Gebert  <steffen@steffen-gebert.de>
+
+       * Fixed bug #17041: CSH tooltip often gets in the way of the field it is supposed to provide help for (Thanks to Stanislas Rolland)
+
 2011-01-18  Susanne Moog  <typo3@susanne-moog.de>
 
        * Fixed bug #17113: Wrong filemount calculation in workspaces for admin users
index 5024ce7..ae42490 100644 (file)
@@ -66,6 +66,8 @@ TYPO3.ContextHelp = function() {
                        TYPO3.CSH.ExtDirect.getContextHelp(table, field, function(response, options) {
                                cshHelp.add(response);
                                updateTip(response);
+                                       // Need to re-position because the height may have increased
+                               tip.show();
                        }, this);
                }
        }
@@ -92,7 +94,8 @@ TYPO3.ContextHelp = function() {
                        tip = new Ext.ToolTip({
                                title: 'CSH', // needs a title for init because of the markup
                                html: '',
-                               anchor: 'left',
+                                       // The tooltip will appear above the label, if viewport allows
+                               anchor: 'bottom',
                                minWidth: 160,
                                maxWidth: 240,
                                target: Ext.getBody(),
@@ -136,7 +139,7 @@ TYPO3.ContextHelp = function() {
                                                                        tip.hide.defer(200, tip, []);
                                                                }
                                                        }
-                                               });             
+                                               });
                                        },
                                        hide: function(tip) {
                                                tip.setTitle('');