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/



_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to