-
27 Apr 2007 1:14 PM #1
Combobox and jQuery and IE - Dropdown Position Offset
Combobox and jQuery and IE - Dropdown Position Offset
I was trying to track down a bug in my code locally, but I've isolated it to jQuery and IE. A combobox appears to be offset by several pixels. The attached image is from:
Examples and Demos/Form and ComboBox/Dynamic Forms
The bug is also present in the current API examples...
-
30 Apr 2007 4:30 AM #2
Your will have to post this to the jquery dimensions plugin. It provides those coordinates when using jQuery.
-
8 May 2007 11:30 PM #3
Is this the same as the serious bug when migrating from 1.0 to 1.0.1 with jquery?
Just open http://extjs.com/deploy/ext/examples...edit-grid.html, select the jquery adapter and scroll down in the table. Now click on "Light"-column und you will have the same offset as the scroll offset.
Or have I missed another bug report?
JOERN
-
9 May 2007 4:33 AM #4
-
9 May 2007 8:31 AM #5
Offsets are calculated differently based on the container of the element. Somewhere, the jQuery plugin is missing part of the calculation. To be honest, I am not sure what it is missing.
-
9 May 2007 9:42 AM #6
-
9 May 2007 3:46 PM #7
Try adding this somewhere after Ext:
Code:Ext.lib.Dom.getXY = function(){ var o = jQuery(el).offset(); return [o.left, o.top]; }
-
9 May 2007 7:38 PM #8
-
10 May 2007 9:18 AM #9
That should be
Code:Ext.lib.Dom.getXY = function(el){ var o = jQuery(el).offset(); return [o.left, o.top]; }\Tim Ryan
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (4.x | 3.x | 2.x | 1.x) / FAQ / 1.x->2.x Migration Guide / 2.x->3.x Migration Guide
-
10 May 2007 11:55 AM #10


Reply With Quote