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

Group
 
 

bug #36155: [Gorm] NSPopupbutton text centered

Submitter:  Riccardo Mottola <rmottola>
Submitted:  Thu 12 Apr 2012 11:00:54 AM UTC
   
 
Category:  Gorm Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group 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>
Group 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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-04 rmottola StatusNone Fixed
        Open/ClosedOpen Closed
    2012-05-06 FredKiefer CategoryGui/AppKit Gorm
        Summary[gui] NSPopupbutton text centered [Gorm] NSPopupbutton text centered

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code