[NSOutlineView outlineView:isGroupItem] rendering issue

  • Is it the designed behavior that the disclosure triangle is not
    vertically centered for a row specified as a group item?

    I have a standard NSTextFieldCell (regular font size) for the column
    that displays the disclosure triangle, the height of the row has been
    tested with 13, 15 and 20. And in every case, the disclosure triangle
    is not vertically centered.

    When I have a look at iTunes, the rendering is better.
  • On Nov 1, 2007, at 10:24 AM, Stéphane Sudre wrote:

    > Is it the designed behavior that the disclosure triangle is not
    > vertically centered for a row specified as a group item?
    >
    > I have a standard NSTextFieldCell (regular font size) for the column
    > that displays the disclosure triangle, the height of the row has
    > been tested with 13, 15 and 20. And in every case, the disclosure
    > triangle is not vertically centered.

    Are you trying to create a Source List?  When I create one, I set the
    control size of the text cell used as the outline column's data cell
    to the small control size.  Doing so causes that cell's font to be the
    correct size, which in turn causes the rows to be the correct size,
    which in turn gets me rendering just like Mail.app.

      -- Chris
  • On vendredi, novembre 2, 2007, at 03:07  AM, Chris Hanson wrote:

    > On Nov 1, 2007, at 10:24 AM, Stéphane Sudre wrote:
    >
    >> Is it the designed behavior that the disclosure triangle is not
    >> vertically centered for a row specified as a group item?
    >>
    >> I have a standard NSTextFieldCell (regular font size) for the column
    >> that displays the disclosure triangle, the height of the row has been
    >> tested with 13, 15 and 20. And in every case, the disclosure triangle
    >> is not vertically centered.
    >
    > Are you trying to create a Source List?  When I create one, I set the
    > control size of the text cell used as the outline column's data cell
    > to the small control size.  Doing so causes that cell's font to be the
    > correct size, which in turn causes the rows to be the correct size,
    > which in turn gets me rendering just like Mail.app.

    Switching to a smallFontSize value leads to a better alignement but why
    would the disclosure not be vertically centered in all cases?

    I guess the answer is: file an enhancement request.
  • >>> Is it the designed behavior that the disclosure triangle is not
    >>> vertically centered for a row specified as a group item?
    >>>
    >>> I have a standard NSTextFieldCell (regular font size) for the
    >>> column that displays the disclosure triangle, the height of the
    >>> row has been tested with 13, 15 and 20. And in every case, the
    >>> disclosure triangle is not vertically centered.
    >>
    >> Are you trying to create a Source List?  When I create one, I set
    >> the control size of the text cell used as the outline column's data
    >> cell to the small control size.  Doing so causes that cell's font
    >> to be the correct size, which in turn causes the rows to be the
    >> correct size, which in turn gets me rendering just like Mail.app.
    >
    > Switching to a smallFontSize value leads to a better alignement but
    > why would the disclosure not be vertically centered in all cases?
    >
    > I guess the answer is: file an enhancement request.

    Thank you; I'll look into it (I already got your bug report).

    --corbin
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today