|
-
Apr 10th, 2007, 03:23 PM
#1
Thread Starter
Lively Member
[2005] Panel :dimension of width/height
Hello....
In my webform I've two panel: the first one has a float dimension because its height depends on the number of objects which are in; the second one as a float dimension too but its height depends on the height of panel one.
For example: panel 2 is at the load of page 30px height; panel 1, after loading all the objects, is 300 px height....I need the panel 2 be 300+30 px height.
How I have to sum the dimension in height (...but I think will be the same about width....) of each panel???
Thank you so much.
-
Apr 10th, 2007, 04:55 PM
#2
Re: [2005] Panel :dimension of width/height
Place panel2 inside panel1 along with the other bit of content that makes it 30px.
-
Apr 10th, 2007, 05:04 PM
#3
Thread Starter
Lively Member
Re: [2005] Panel :dimension of width/height
Thank you for reply but I only need to sum the height of two panel.
Have you another idea about this problem??
-
Apr 11th, 2007, 04:54 AM
#4
Re: [2005] Panel :dimension of width/height
Code:
document.getElementById('div1').offsetHeight + document.getElementById('div2').offsetHeight
-
Apr 11th, 2007, 10:03 AM
#5
Thread Starter
Lively Member
Re: [2005] Panel :dimension of width/height
Sorry for my stupid question but I'm dummy about asp.net.
I've to put the code in a script and not in the .vb page,true??
-
Apr 11th, 2007, 10:30 AM
#6
Re: [2005] Panel :dimension of width/height
-
Apr 11th, 2007, 10:34 AM
#7
Thread Starter
Lively Member
Re: [2005] Panel :dimension of width/height
Ok mendhak..thank you!!
During the afternoon I'll try to insert this code in my WebApplication!!
-
Apr 11th, 2007, 10:35 AM
#8
Re: [2005] Panel :dimension of width/height
Good luck. Come back if you're still stuck.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|