Control.Reparent() correctly moves the control if the parent is not changed.
[GB.GTK] * BUG: Control.Reparent() correctly moves the control if the parent is not changed. [GB.GTK3] * BUG: Control.Reparent() correctly moves the control if the parent is not changed.
This commit is contained in:
parent
8e91ff071a
commit
d20832fd74
1 changed files with 3 additions and 0 deletions
|
@ -2527,7 +2527,10 @@ void gControl::reparent(gContainer *newpr, int x, int y)
|
|||
return;
|
||||
|
||||
if (pr == newpr && pr->getContainer() == newpr->getContainer())
|
||||
{
|
||||
move(x, y);
|
||||
return;
|
||||
}
|
||||
|
||||
if (was_visible) hide();
|
||||
//gtk_widget_unrealize(border);
|
||||
|
|
Loading…
Reference in a new issue