bugGNUstep - Bugs: bug #9279, center aligned, editable...

Group
 
 

bug #9279: center aligned, editable NSTextFields

Submitter:  Rob Burns <rburns>
Submitted:  Wed 09 Jun 2004 09:46:44 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  alexm
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Nov 2004 02:19:45 PM UTC, comment #1: 

Fixed in cvs by:
CVSROOT: /cvsroot/gnustep
Module name: gnustep
Branch:
Changes by: Alexander Malmberg <alexander(at)malmberg(dot)org> 04/11/11 14:10:08

Modified files:
core/gui       : ChangeLog
core/gui/Source: NSCell.m NSLayoutManager.m NSTextView.m

Log message:
2004-11-11 15:08  Alexander Malmberg <alexander(at)malmberg(dot)org>

  • Source/NSCell.m (-_setupTextWithFrame:inView:editor:): Reduce the

maximum size. Explicitly set the size of the text view, and make it
not resizable.

  • Source/NSLayoutManager.m (-rectArrayForGlyphRange:

withinSelectedGlyphRange:inTextContainer:rectCount:): Fix check for
whether the starting index is inside a line frag rect.

  • Source/NSTextView.m (-sizeToFit): Don't increase the size if we

have no inset.
(-updateInsertionPointStateAndRestartTimer:): Force the insertion
point rect to be inside the text view.
(-scrollRangeToVisible:): If we are a non-rich-text field editor,
adjust the scrolling to make the auto-scrolling more useful.

Fixes bug #9279.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/ChangeLog.diff?tr1=1.2417&tr2=1.2418&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/Source/NSCell.m.diff?tr1=1.163&tr2=1.164&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/Source/NSLayoutManager.m.diff?tr1=1.92&tr2=1.93&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/Source/NSTextView.m.diff?tr1=1.162&tr2=1.163&r1=text&r2=text

Alexander Malmberg <alexm>
Group Member
Wed 09 Jun 2004 09:46:44 PM UTC, original submission:  

when text in a center aligned, editable text field is displayed, it is centered. but, while editing it is right aligned. The text is shifted left as you type. With the latin alphabet this works, even if visually not very appealing. With other alphabets (Thai in this case), not every letter will cause the string to shift left, because the character is placed on top or bottom of the previous one, rather than to the right. consequently, you can't see what you are typing.

Rob Burns <rburns>

 

(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

 

CC list is empty

 

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 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-11-11 alexm StatusNone Fixed
    Assigned toNone alexm
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code