-
7 Feb 2011 6:28 AM #1
Smart tooltip
Smart tooltip
Hi,
I use a tooltip for a panel and I have a problem.
My panel is on the right of my page, and when I put my mouse hover the panel, the tooltip is display but a part of this tooltip is outdoor (out? sorry french).
Is it possible to give a property to enable tooltip that he did not have the size to display to the right of the cursor, he starts to the left?
Thank
-
7 Feb 2011 7:23 AM #2
-
7 Feb 2011 8:15 AM #3
PHP Code:var myTooltipPanel = new Ext.ToolTip({
target: myPanelElOrId,
anchor: 'r-r?',
trackMouse: true,
title:' test title',
html: 'test tooltip'
});
http://dev.sencha.com/deploy/dev/doc...lement-alignTo
"?" is passed at the end of the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to the viewport if necessary"
-
7 Feb 2011 8:46 AM #4
You can try to use the anchor config property... Also try defining the tip's height/width.
Brad Baumann
-
24 Feb 2011 7:02 PM #5
There is a bug/typo with Ext.ToolTip's adjustPosition method so add this override and see if that fixes the issue for you.
Code:Ext.ToolTip.override({ adjustPosition : function(x, y){ if(this.constrainPosition){ var ay = this.targetXY[1], h = this.getSize().height; if(y <= ay && (y+h) >= ay){ y = ay-h-5; } } return {x : x, y: y}; } });
Similar Threads
-
Ext.each : with remove - not smart enough
By DaveC426913 in forum Sencha Touch 1.x: DiscussionReplies: 5Last Post: 30 Nov 2010, 10:36 AM -
Is smart rendering possible in grid???
By jeff77 in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 10 Sep 2010, 12:03 AM -
TreePanel - Smart Checkboxes
By NoahK17 in forum Community DiscussionReplies: 16Last Post: 12 May 2010, 8:55 AM -
Smart Ext toolbar
By tinnt in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 20 Nov 2008, 7:04 PM -
GridPanel - smart rendering
By embolooloo in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 8 Oct 2007, 7:57 PM


Reply With Quote