From: Richard K. <ric...@us...> - 2005-07-15 20:01:17
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20931 Modified Files: ASAlertPanel.as Log Message: move buttons to bottom Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ASAlertPanel.as 15 Jul 2005 12:27:12 -0000 1.2 --- ASAlertPanel.as 15 Jul 2005 20:01:07 -0000 1.3 *************** *** 185,189 **** m_msgField.setSelectable(false); m_msgField.setBezeled(false); ! //m_msgField.setDrawsBackground(true); //m_msgField.setBackgroundColor(NSColor.controlBackgroundColor()); m_msgField.setAlignment(NSTextAlignment.NSCenterTextAlignment); --- 185,189 ---- m_msgField.setSelectable(false); m_msgField.setBezeled(false); ! m_msgField.setDrawsBackground(false); //m_msgField.setBackgroundColor(NSColor.controlBackgroundColor()); m_msgField.setAlignment(NSTextAlignment.NSCenterTextAlignment); *************** *** 364,367 **** --- 364,370 ---- content = contentView(); bounds = content.bounds(); + + TRACE(bounds); + TRACE(frame()); // now we can place the buttons. *************** *** 373,377 **** position -= bsize.width; rect.origin.x = position; ! rect.origin.y = bounds.origin.y + ButtonBottom; rect.size.width = bsize.width; rect.size.height = bsize.height; --- 376,380 ---- position -= bsize.width; rect.origin.x = position; ! rect.origin.y = bounds.maxY() - (bsize.height*2 + ButtonBottom); rect.size.width = bsize.width; rect.size.height = bsize.height; |