From: Tay R. C. <rc...@us...> - 2005-07-26 11:39:03
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2184/actionstep/org/actionstep Modified Files: ASAlertPanel.as Log Message: - positionElements stores contentView in temp var, and draws white bg for view Index: ASAlertPanel.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASAlertPanel.as,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ASAlertPanel.as 26 Jul 2005 11:37:20 -0000 1.17 --- ASAlertPanel.as 26 Jul 2005 11:38:53 -0000 1.18 *************** *** 128,134 **** private function positionElements() { var rect:NSRect = NSRect.ZeroRect; if(m_ico_mc==null) { //create the icon ! var mc = contentView().mcBounds() m_ico_mc = mc.createEmptyMovieClip("m_ico_mc", mc.getNextHighestDepth()); m_ico.lockFocus(m_ico_mc); --- 128,135 ---- private function positionElements() { var rect:NSRect = NSRect.ZeroRect; + var content:NSView = contentView(); if(m_ico_mc==null) { //create the icon ! var mc = content.mcBounds() m_ico_mc = mc.createEmptyMovieClip("m_ico_mc", mc.getNextHighestDepth()); m_ico.lockFocus(m_ico_mc); *************** *** 200,203 **** --- 201,207 ---- rect.size.height = m_def.frame().maxY() + BtnBottom + rootView().titleRect().size.height; setFrame(rect); + + //fill content with white + ASDraw.solidRectWithRect(content.mcBounds(), content.bounds(), 0xFFFFFF); } |