From f3993767a6da947325cd33ed7f3958c1a6823bcb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Aug 2014 16:25:39 +0000 Subject: Fix positioning of embedded widgets during sprung layout. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5455 a436a847-0d15-0410-975c-d299462d15a1 --- src/module.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/module.c b/src/module.c index d630ec8..85d48aa 100644 --- a/src/module.c +++ b/src/module.c @@ -550,6 +550,11 @@ ganv_module_update(GanvItem* item, int flags) layout(node); } + if (module->impl->embed_item) { + // Kick the embedded item to update position if we have moved + ganv_item_move(GANV_ITEM(module->impl->embed_item), 0.0, 0.0); + } + GanvItemClass* item_class = GANV_ITEM_CLASS(parent_class); item_class->update(item, flags); -- cgit v1.2.1