Sizes should remain the same when ungrouping.
This commit is contained in:
parent
003ddd6881
commit
a4dfd8c95e
1 changed files with 7 additions and 8 deletions
|
@ -2571,15 +2571,14 @@ namespace NLGUI
|
||||||
|
|
||||||
oldId = e->getId();
|
oldId = e->getId();
|
||||||
|
|
||||||
|
e->setW( e->getWReal() );
|
||||||
|
e->setH( e->getHReal() );
|
||||||
|
e->setSizeRef( "" );
|
||||||
|
|
||||||
e->setParent( p );
|
e->setParent( p );
|
||||||
|
|
||||||
if( e->getParentPos() == this )
|
|
||||||
e->setParentPos( p );
|
e->setParentPos( p );
|
||||||
|
|
||||||
if( e->getParentSize() == this )
|
|
||||||
e->setParentSize( p );
|
e->setParentSize( p );
|
||||||
|
|
||||||
if( e->getParentPos() == p )
|
|
||||||
e->alignTo( p );
|
e->alignTo( p );
|
||||||
|
|
||||||
p->addElement( e );
|
p->addElement( e );
|
||||||
|
|
Loading…
Reference in a new issue