Bug in TGMatrixLayout?

From: Mathieu de Naurois (denauroi@polhp1.in2p3.fr)
Date: Fri Sep 04 1998 - 18:03:56 MEST


Hello ROOTers

  In opposite to TGVerticalLayout and TGHorizontalLayout, TGMatrixLayout
does not take into account the border width of the parent frame.
This causes it to look very bad when used with TGGroupFrame (The title of
the Frame is overlapped by the matrix)

In TGMatrixLayout::Layout, I would just suggest to change 

  Int_t x = fSep, y = fSep;  

by
  
  Int_t    bw = fMain->GetBorderWidth(); 
  Int_t x = fSep + bw, y = fSep + bw;                           

 I made a derived class with this modification, and it looks much better.


------------------------------------------------------


Mathieu de Naurois
LPNHE Ecole Polytechnique
denauroi@polhp1.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET