[ui] GraphEditor: trigger fit on project opening

* fit when the underlying graph has changed (new/open project)
* add 'F' shortcut to fit
* trigger fit after UI has been fully initialized (correct sizes)
This commit is contained in:
Yann Lanthony 2018-07-27 17:55:01 +02:00
parent 53be806019
commit c3464fa4e8
2 changed files with 18 additions and 0 deletions

View file

@ -322,6 +322,8 @@ ApplicationWindow {
// open CompatibilityManager after file loading if any issue is detected
if(compatibilityManager.issueCount)
compatibilityManager.open()
// trigger fit to visualize all nodes
graphEditor.fit()
}
onInfo: createDialog(dialogsFactory.info, arguments[0])