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

Layout with gutter...

Expand Messages
  • santini.alberto
    Hello. I should suggest to add in the documentation http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_gutter the gutter works fine (is
    Message 1 of 3 , Jun 30, 2008
    • 0 Attachment
      Hello.

      I should suggest to add in the documentation

      http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_gutter

      the gutter works fine (is displayed) only if the resize configuration
      attribute is true as for instance

      ...
      {position: 'left', width: 300, collapse: true, resize: true,
      body: 'nav', header: 'Navigator', gutter: '0 5 0 0px',
      minWidth: 10, scroll: {overflow: 'auto'}},
      ...

      Ok... I am a newbie but I passed hours to understand the gutter
      element was not displayed. :)

      Thanks in advance,
      Alberto Santini
    • Dav Glass
      Alberto -- I don t see any issue with the gutter in a Layout Unit with resize off.. I think you are confusing the gutter property with the
      Message 2 of 3 , Jun 30, 2008
      • 0 Attachment
        Alberto --

        I don't see any issue with the gutter in a Layout Unit with resize off..

        I think you are confusing the gutter property with the collapse/collapseSize property:
        http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_collapse
        http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_collapseSize

        The gutter property allows you to add "padding" around the unit inside the Layout. There is no HTML element associated with this setting.

        So if you set the gutter on the right unit to be 5, then you set the width of the unit to be 200. The unit would actually be about 190 pixels wide, since we add 5 pixel's of padding on each side..

        The collapse config option allows you to collapse a unit down to a smaller size (clip), that clip is sized at 50 pixels by default, the collapseSize config option determines that size..

        Does all that make sense?
        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: santini.alberto <albertosantini@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Monday, June 30, 2008 5:33:17 AM
        Subject: [ydn-javascript] Layout with gutter...

        Hello.

        I should suggest to add in the documentation

        http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_gutter

        the gutter works fine (is displayed) only if the resize configuration
        attribute is true as for instance

        ...
        {position: 'left', width: 300, collapse: true, resize: true,
        body: 'nav', header: 'Navigator', gutter: '0 5 0 0px',
        minWidth: 10, scroll: {overflow: 'auto'}},
        ...

        Ok... I am a newbie but I passed hours to understand the gutter
        element was not displayed. :)

        Thanks in advance,
        Alberto Santini




        ------------------------------------

        Yahoo! Groups Links
      • santini.alberto
        Hello. ... http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_collapse ...
        Message 3 of 3 , Jul 2, 2008
        • 0 Attachment
          Hello.

          --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
          >
          > Alberto --
          >
          > I don't see any issue with the gutter in a Layout Unit with resize off..
          >
          > I think you are confusing the gutter property with the
          collapse/collapseSize property:
          >
          http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_collapse
          >
          http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_collapseSize

          [cut]

          Sorry... my misunderstanding. :(

          >
          > Does all that make sense?
          > Dav

          Yes, it makes sense.

          Thanks,
          Alberto
        Your message has been successfully submitted and would be delivered to recipients shortly.