bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #21695] [NSText sizeToFit] does not resize vertically


From: Christopher Wojno
Subject: [bug #21695] [NSText sizeToFit] does not resize vertically
Date: Sun, 02 Dec 2007 02:43:49 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.9) Gecko/20071117 Firefox/2.0.0.9

URL:
  <http://savannah.gnu.org/bugs/?21695>

                 Summary: [NSText sizeToFit] does not resize vertically
                 Project: GNUstep
            Submitted by: wojno
            Submitted on: Sunday 12/02/2007 at 02:43
                Category: Gui/AppKit
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Instance method of NSText: sizeToFit, which is supposed to resize the
receiver such that it only encompasses it's contained text, does not appear to
work when attempting to resize vertically. I'm not sure if a bug has been
filed on this yet as I do not know what other components it affects. It does
work for horizontal.

Please See:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSText_Class/index.html#//apple_ref/doc/uid/TP40004128

NSText *t = [NSText alloc] initWithFrame:NSMakeRect(0,0,1,1)];
[t setVerticallyResizable:YES]; // this should be the default anyway
[t setString:@"TestString"];
[t sizeToFit];
NSRect bad = [t frame];

Result:
1 = bad.size.height




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21695>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]