Loading ...
Sorry, an error occurred while loading the content.

Re: dynamically change height of rendered layout

Expand Messages
  • Mark Veerman
    Thats perfect, thanks! I m ashamed to say that when I was looking through the API, I overlooked the methods inherited by AttributeProvider which is where set
    Message 1 of 3 , Aug 22, 2008
    View Source
    • 0 Attachment
      Thats perfect, thanks!

      I'm ashamed to say that when I was looking through the API, I
      overlooked the methods inherited by AttributeProvider which is where
      set comes in.

      Thanks,
      Mark


      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      > Mark --
      >
      > You can set the height of the Layout or the Unit like this:
      >
      > layout.set('height', 200);
      > layout.getUnitByPosition('left').set('height', 150);
      >
      > //Depending on the changes, you may need to force a resize
      > layout.resize();
      >
      > Does that help?
      > Dav
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      >
      > ----- Original Message ----
      > From: Mark Veerman <mark@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Friday, August 22, 2008 12:04:31 PM
      > Subject: [ydn-javascript] dynamically change height of rendered layout
      >
      > What's the best way to dynamically change the height of a Layout or a
      > LayoutUnit that's already rendered? I'm looking to keep the layout
      > proportional to the viewport.
      >
      > Thanks,
      > Mark
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > http://docs.yahoo.com/info/terms/
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.