Results 1 to 8 of 8

Thread: [2005] Panel :dimension of width/height

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Italy
    Posts
    117

    [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.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Panel :dimension of width/height

    Place panel2 inside panel1 along with the other bit of content that makes it 30px.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Italy
    Posts
    117

    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??

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Panel :dimension of width/height

    Code:
    document.getElementById('div1').offsetHeight + document.getElementById('div2').offsetHeight

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Italy
    Posts
    117

    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??

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Panel :dimension of width/height

    Yes, it is javascript.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Italy
    Posts
    117

    Re: [2005] Panel :dimension of width/height

    Ok mendhak..thank you!!
    During the afternoon I'll try to insert this code in my WebApplication!!

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width