[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cell size issue
From: |
Andreas Höschler |
Subject: |
Cell size issue |
Date: |
Mon, 13 Aug 2007 22:40:30 +0200 |
Hi all,
I was looking for a cellSize issue that caused automatic interface
layouting like in Renaissance to malfunction. The problem can easily be
demonstrated by opening the preference panel of Terminal.app (have a
look at the NSTextFields, they are too high and look very ugly in
conjunction with Etoile). Terminal.app like many other applications
uses GSVBox, GSHBox for interface layouting. This relies on sizeToFit
and finally on NSCell:cellSize. In NSCell.m I did the following to fix
this issue make things work reasonably again (with Etoile).
- (NSSize)cellSize
{
NSSize s, borderSize = NSZeroSize;
// Get border size
/* if (_cell.is_bordered)
borderSize = _sizeForBorderType (NSLineBorder);
else if (_cell.is_bezeled)
borderSize = _sizeForBorderType (NSBezelBorder);
else
borderSize = NSZeroSize;*/
...
}
This "too large borderSize" issue must have been introduced very
recently in gui. I did not have this issue with earlier versions of
GNUstep. Why has this code been modified? Can we revert it to its
original state?
Thanks,
Andreas
- Cell size issue,
Andreas Höschler <=