Update CCtrlTextButton's CViewText's coords after updating it's own coords.

--HG--
branch : dfighter-tools
hg/feature/light_cycle
dfighter1985 10 years ago
parent 86007c9156
commit 4571038fa6

@ -875,7 +875,8 @@ namespace NLGUI
// Should have been setuped with addCtrl
nlassert(_Setuped);
_ViewText->updateCoords();
if( _Name == "==MARKED==" )
bool marked = true;
// Compute Size according to bitmap and Text.
if (!(_SizeRef & 1))
@ -890,6 +891,8 @@ namespace NLGUI
}
CViewBase::updateCoords();
_ViewText->updateCoords();
}
// ***************************************************************************

@ -2683,7 +2683,7 @@ namespace NLGUI
e->setParentSize( g );
g->addElement( e );
//e->setName( "==MARKED==" );
e->setName( "==MARKED==" );
draggedElement = NULL;

Loading…
Cancel
Save