Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Prolem with offset
lgoess
Junior Member

Posts: 2
Registered: 10/27/2005
Member Is Offline
posted on 10/27/2005 at 01:32 PM Reply With Quote
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?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 10/29/2005 at 04:46 PM Reply With Quote

To enable the relative positioning remove block_top and block_left key:value pairs from the root level configuration in the template.js
View User's Profile View All Posts By User U2U Member
lgoess
Junior Member

Posts: 2
Registered: 10/27/2005
Member Is Offline
posted on 10/31/2005 at 05:49 PM Reply With Quote

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:
Clipboard01.png - 12.23kb
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 11/11/2005 at 05:10 AM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Functionality demos Functionality demos
Multiple
Cross-framed
Select-boxes
Effects
Design demos Design demos
Icons & arrows
Idea!
Hi there!
Matrix
MS Style
XP Style
Dots
3D-Buttons
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004