summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-08-29 16:25:39 +0000
committerDavid Robillard <d@drobilla.net>2014-08-29 16:25:39 +0000
commitf3993767a6da947325cd33ed7f3958c1a6823bcb (patch)
tree04790958e9c75c6ef5b4af7d4c0488f4525dfe1c /src
parentb212b16afa79b1687afab3db65f38d6d3793dfd0 (diff)
downloadganv-f3993767a6da947325cd33ed7f3958c1a6823bcb.tar.gz
ganv-f3993767a6da947325cd33ed7f3958c1a6823bcb.tar.bz2
ganv-f3993767a6da947325cd33ed7f3958c1a6823bcb.zip
Fix positioning of embedded widgets during sprung layout.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5455 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/module.c5
1 files changed, 5 insertions, 0 deletions
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);