|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Wrong top position of the combo popup with IE 6 or 7Hello,
With this code sample (the goal is to have a frame with a combo centered in the screen): <script> rialto.onload = function() { var divFrameLogin = document.getElementById('divFrameLogin'); var frame = new rialto.widget.Frame({name:'frame',width:'400',height:'250',title:'login',position:'relative',parent:divFrameLogin}); var combo = new rialto.widget.Combo('','combo',120,140,80,frame,{suggest:true}); combo.addItem("FR","FR"); } </script> <body> <table width="100%" height="100%"> <tr> <td align="center"> <div id='divFrameLogin'"/> </td> </tr> </table> </body> ... the result is a combo popup misplaced. The cause seems to be a wrong value of "offsetTop" in the "compOffsetTop()" function. I find some similar problems in message #544 and http://kirblog.idetalk.com/2007/10/problem-with-offsettop-and-element.html http://www.developpez.net/forums/d671147/webmasters-developpement-web/javascript/bibliotheques-frameworks/combobox-position-ie/ Can you confirm this is the same problem? Do you know a workaround with Rialto? Thanks, Gilles |
|
|
Re: Wrong top position of the combo popup with IE 6 or 7Hello,
I don't see wrong behavior : for me Frame and Combo are centered. Which browser and versions you used ? Can you post a screen copy? François --- In rialto-dev@..., "Gilles Rossi" <gilles.rossi@...> wrote: > > Hello, > > With this code sample (the goal is to have a frame with a combo centered in the screen): > > <script> > rialto.onload = function() { > var divFrameLogin = document.getElementById('divFrameLogin'); > var frame = new rialto.widget.Frame({name:'frame',width:'400',height:'250',title:'login',position:'relative',parent:divFrameLogin}); > var combo = new rialto.widget.Combo('','combo',120,140,80,frame,{suggest:true}); > combo.addItem("FR","FR"); > } > </script> > > <body> > <table width="100%" height="100%"> > <tr> > <td align="center"> > <div id='divFrameLogin'"/> > </td> > </tr> > </table> > </body> > > ... the result is a combo popup misplaced. The cause seems to be a wrong value of "offsetTop" in the "compOffsetTop()" function. > I find some similar problems in message #544 > and http://kirblog.idetalk.com/2007/10/problem-with-offsettop-and-element.html > http://www.developpez.net/forums/d671147/webmasters-developpement-web/javascript/bibliotheques-frameworks/combobox-position-ie/ > > Can you confirm this is the same problem? > Do you know a workaround with Rialto? > > Thanks, > > Gilles > |
|
|
Re: Wrong top position of the combo popup with IE 6 or 7Hello Gilles,
Sorry, you're right it's in IE ! I see more ... François I don't see wrong behavior : for me Frame and Combo are centered. Which browser and versions you used ? Can you post a screen copy? François --- In rialto-dev@..., "Gilles Rossi" <gilles.rossi@...> wrote: > > Hello, > > With this code sample (the goal is to have a frame with a combo centered in the screen): > > <script> > rialto.onload = function() { > var divFrameLogin = document.getElementById('divFrameLogin'); > var frame = new rialto.widget.Frame({name:'frame',width:'400',height:'250',title:'login',position:'relative',parent:divFrameLogin}); > var combo = new rialto.widget.Combo('','combo',120,140,80,frame,{suggest:true}); > combo.addItem("FR","FR"); > } > </script> > > <body> > <table width="100%" height="100%"> > <tr> > <td align="center"> > <div id='divFrameLogin'"/> > </td> > </tr> > </table> > </body> > > ... the result is a combo popup misplaced. The cause seems to be a wrong value of "offsetTop" in the "compOffsetTop()" function. > I find some similar problems in message #544 > and http://kirblog.idetalk.com/2007/10/problem-with-offsettop-and-element.html > http://www.developpez.net/forums/d671147/webmasters-developpement-web/javascript/bibliotheques-frameworks/combobox-position-ie/ > > Can you confirm this is the same problem? > Do you know a workaround with Rialto? > > Thanks, > > Gilles > |
|
|
Re: Wrong top position of the combo popup with IE 6 or 7Hello Gilles,
For now, I have no global solution / compOffsetTop method : it's come from tr's top offset computing (bug) in IE. But I have a solution for your specific problem (code) : center frame and combo by Html Table and Tr's use. And perhaps it's good for combo in all situations : should be tested... I have create a new method compOffsetTopIE yet used by setTop Combo method. (whether to return to the previous behavior (old compOffsetTop method used in Combo) you must add attribute (special = "no") in Combo parameter.) It seem to work. Just update rialto.js François --- In rialto-dev@..., "Gilles Rossi" <gilles.rossi@...> wrote: > > Hello, > > With this code sample (the goal is to have a frame with a combo centered in the screen): > > <script> > rialto.onload = function() { > var divFrameLogin = document.getElementById('divFrameLogin'); > var frame = new rialto.widget.Frame({name:'frame',width:'400',height:'250',title:'login',position:'relative',parent:divFrameLogin}); > var combo = new rialto.widget.Combo('','combo',120,140,80,frame,{suggest:true}); > combo.addItem("FR","FR"); > } > </script> > > <body> > <table width="100%" height="100%"> > <tr> > <td align="center"> > <div id='divFrameLogin'"/> > </td> > </tr> > </table> > </body> > > ... the result is a combo popup misplaced. The cause seems to be a wrong value of "offsetTop" in the "compOffsetTop()" function. > I find some similar problems in message #544 > and http://kirblog.idetalk.com/2007/10/problem-with-offsettop-and-element.html > http://www.developpez.net/forums/d671147/webmasters-developpement-web/javascript/bibliotheques-frameworks/combobox-position-ie/ > > Can you confirm this is the same problem? > Do you know a workaround with Rialto? > > Thanks, > > Gilles > |
| Free embeddable forum powered by Nabble | Forum Help |