DockedPanel binding loop for visibleSize

asked 2019-03-04 21:41:51 +0300

When declaring a DockedPanel inside an ApplicationWindow I see Binding loop detected for property "visibleSize" error messages that seem to be caused by visibleSize being calculated before reparenting in Component.onCompleted.

The worst thing is that under some conditions this causes the window contents to not get rendered until some user interaction.

I suggest fixing it by adding something like

if (panel.parent === __silica_applicationwindow_instance.contentItem) { return 0 }

to the beginning of _visibleSize function.

edit retag flag offensive close delete