mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-24 08:06:13 +00:00
Update CCtrlTextButton's CViewText's coords after updating it's own coords.
This commit is contained in:
parent
13ce42c75b
commit
8decbc9eaf
2 changed files with 5 additions and 2 deletions
|
@ -875,7 +875,8 @@ namespace NLGUI
|
||||||
// Should have been setuped with addCtrl
|
// Should have been setuped with addCtrl
|
||||||
nlassert(_Setuped);
|
nlassert(_Setuped);
|
||||||
|
|
||||||
_ViewText->updateCoords();
|
if( _Name == "==MARKED==" )
|
||||||
|
bool marked = true;
|
||||||
|
|
||||||
// Compute Size according to bitmap and Text.
|
// Compute Size according to bitmap and Text.
|
||||||
if (!(_SizeRef & 1))
|
if (!(_SizeRef & 1))
|
||||||
|
@ -890,6 +891,8 @@ namespace NLGUI
|
||||||
}
|
}
|
||||||
|
|
||||||
CViewBase::updateCoords();
|
CViewBase::updateCoords();
|
||||||
|
|
||||||
|
_ViewText->updateCoords();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
|
@ -2683,7 +2683,7 @@ namespace NLGUI
|
||||||
e->setParentSize( g );
|
e->setParentSize( g );
|
||||||
g->addElement( e );
|
g->addElement( e );
|
||||||
|
|
||||||
//e->setName( "==MARKED==" );
|
e->setName( "==MARKED==" );
|
||||||
|
|
||||||
draggedElement = NULL;
|
draggedElement = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue