bugGNUstep - Bugs: bug #36155, [Gorm] NSPopupbutton text centered


You are not allowed to post comments on this tracker with your current authentication level.

bug #36155: [Gorm] NSPopupbutton text centered

Submitted by:  Riccardo Mottola <rmottola>
Submitted on:  Thu 12 Apr 2012 11:00:54 AM UTC  
Category: GormSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 29 Nov 2012 08:47:52 AM UTC, comment #4:

Gorm creates them wrong.

Furthermore, I'd suggest that gorm files odler than a certain version (before the one where it will be fixed) should be "converted" on the fly by setting that property, also, when opeing it in gorm it should be correct, so opening/saving a file should update and fix it.

Riccardo Mottola <rmottola>
Project Member
Tue 08 May 2012 07:34:13 AM UTC, comment #3:

We also have the problem with all existing gorm files. Perhaps the decoder can insert a default left if the gorm+gui file is <= version x.y, where x.y is when it was fixed (which isn't yet, I reckon)

Riccardo Mottola <rmottola>
Project Member
Sun 06 May 2012 01:01:30 PM UTC, comment #2:

I changed this into a Gorm bug as the prototype for a popup button on the palatte there has centre alignment.

I have no idea how this could be changed as Gorm itself doesn't allow to change the alignement of popup button cells.

Fred Kiefer <FredKiefer>
Project Member
Thu 12 Apr 2012 04:20:34 PM UTC, comment #1:

My fix for bug https://savannah.gnu.org/bugs/?35702 caused this...

Before that fix NSPopUpButton was hardcoded to always left-align the labels. Now it draws the label in the available space, and since it uses the standard -[NSCell _drawText:inFrame:] method, now -[NSCell alignment] should determine whether the text is left, center, or right aligned. I think this is correct, so check one of the popup buttons showing centered text and see if -alignment returns NSCenterTextAlignment.

Eric Wasylishen <ericw>
Project Member
Thu 12 Apr 2012 11:00:54 AM UTC, original submission:

Many (but apparently not all!) closed popup buttons show its current item text centered instead of left-aligned. This is wrong and inconsistent.

Examples can be found in many applications including Gorm's attribute inspector and palette, et al.

Strangely, I the popup buttons in the system preferences panels are correct.

perhaps it depends on how the element gets instantiated, perhaps certain gorm unarchiving?

Riccardo Mottola <rmottola>
Project Member


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by ericw (Posted a comment)
  • -unavailable- added by rmottola (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Jan 2013 09:16:00 AM UTCrmottolaStatusNone=>Fixed
    Sun 06 May 2012 01:01:30 PM UTCFredKieferCategoryGui/AppKit=>Gorm
      Summary[gui] NSPopupbutton text centered=>[Gorm] NSPopupbutton text centered

    Back to the top

    Powered by Savane 3.1-cleanup1