Build: 3.02
Topic: Combobox dropdown problem
|
|
||
|
I am not to good at code reading.. |
||
|
|
|
|
||
|
Sorry, |
||
|
|
|
|
||
|
I have managed to create temporary access to a page at the following location: http://64.252.130.69 |
||
|
|
|
|
||||
|
This was due to a bug in 3.x dealing with offsets. I have a workaround for you using hooks, but it requires you to change one line of code in coreutils.js while(e && (e.style.position=="relative" || e.style.position=="absolute")){Change it to read while(e){Now, in your source file, add this to the end of your onload event: core.useElmHooks = true;
core.elmProto.regHook("show", showHook);and add this next function to your file:function showHook(e,args){
if(e.domAPIObjType == "LISTBOX" && e.parent && e.parent.domAPIObjType == "COMBOBOX"){
var x = core.isIE? -8: -16;
var y = core.isIE? -24: -34;
e.moveBy(x,y);
}
};What we are doing is registering a hook on the show() method. Whenever show() is called by any elms, our new showHook() method is called, passing in a pointer to the Elm that called it. We do a small filter to make sure we are dealing with the dropDown of a Combobox and then do a *really* hacky position correction. The change we made in core.getTrueOffset() will account for the relative nesting in your code. Hooks really come in handy for this sorta trickery ;)
|
||||
|
|
