lgoess
Junior Member
Posts: 2
Registered: 10/27/2005
Member Is Offline
|
| posted on 10/27/2005 at 01:32 PM |
|
|
Prolem with offset
whith relative positionin, i would expect no offset if i set block_top or _left to 0. allas, if i want to achieve this, i have to use some negative
values, which i can only guess.
is this a bug or am i doing something wrong?
|
|
|
tigra
Administrator
Posts: 1920
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/29/2005 at 04:46 PM |
|
|
To enable the relative positioning remove block_top and block_left key:value pairs from the root level configuration in the template.js
|
|
|
lgoess
Junior Member
Posts: 2
Registered: 10/27/2005
Member Is Offline
|
| posted on 10/31/2005 at 05:49 PM |
|
|
ok- thats obvious, otherwise i'd define an absolute position for base level. but still i have the problem, at least in firefox. this seems to have
to do with the offset of the parent block element, eg:
if my parent element has a vertical offset of 55px, and my block hight is 25, the offset for the second level elements has to be 25-55=-30 px in
order to have them align with base level element
otherwise i get an offset of block_top + 55px
see attacherd screenshot and template file
ps: the problem only appears with firefox, not on ie!
Template.js:
var MENU_POS0 = [
{
//'width': 150,
'height': 25,
'hide_delay': 200,
'expd_delay': 200,
'vertical': false,
'table': [0,0,0],
'css': {
'table': 'TM0t0',
'outer': ['TM0o0','TM0o1'],
'inner': ['TM0i0','TM0i1']
}
},
{
'width': 120,
'block_left': 0,
'block_top': 25,
'vertical': true,
'css': {
'table': 'TM1t0',
'outer': ['TM1o0','TM0o1'],
'inner': ['TM0i0','TM0i1','TM1i2']
}
},
{
//'width': 120,
'block_left': 120,
'block_top': 0,
'vertical': true,
'css': {
'table': 'TM2t0',
'outer': ['TM1o0','TM0o1'],
'inner': ['TM0i0','TM0i1','TM1i2']
}
}
];
lgoess has attached this image:
|
|
|
tigra
Administrator
Posts: 1920
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 11/11/2005 at 05:10 AM |
|
|
Sometimes the FF screws up the positioning where mix of relative and absolute positioning options is used on the containing HTML elements. In most
cases situation is resolved by straightening up the positioning/layout of the page elements.
|
|
|
|