#1060: Autocompletefield displays incorrectly within relatively positioned
blocks
--------------------------+-------------------------------------------------
Reporter: PeterRussell | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Widgets | Version: 0.9a6
Severity: minor | Keywords: Patch
--------------------------+-------------------------------------------------
When an autocompletefield widget is contained within a block that has
position:relative CSS attribute, the completion list does not display
directly below the entry box.
This can be fixed with the following simple patch:
Index: turbogears/widgets/static/autocompletefield.js
===================================================================
--- turbogears/widgets/static/autocompletefield.js (revision 1733)
+++ turbogears/widgets/static/autocompletefield.js (working copy)
@@ -338,7 +338,7 @@
function getParentOffset(s,offsetType) {
var parentOffset=0;
- while(s) {
+ while(s && computedStyle(s, 'position') != 'relative') {
parentOffset+=s[offsetType];
s=s.offsetParent
}
Thanks
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1060>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---