ASP/C#/Javascript-WEB: Get DIV/Panel width after overflow

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ShadowLocke
    New Member
    • Jan 2008
    • 116

    ASP/C#/Javascript-WEB: Get DIV/Panel width after overflow

    Hi all,

    I need to get the width of a Panel object after an unkown amount of controls has been added to it.

    I have not set the original width of the Panel because i want it to autosize to view all the controls. After the autosize has occurred, I need to set another Panel to the new size.

    My problem is, I don't know how to return the new size of the Panel.

    Can this be done?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Does the width attribute not get updated?

    Comment

    • ShadowLocke
      New Member
      • Jan 2008
      • 116

      #3
      You know...it does.

      It wasnt untill you actually said this that it dawned on me the order in which the events occur (its in a class thats inherited) and i was actually checking the width before it had the chance to autosize...i feel stupid.

      Thanks Plater!

      Comment

      Working...