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


_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à