I'm looking to automate the adjustment of a panel's height based on the viewport's height using Ext js.
Although achievable using listeners, I believe utilizing Ext js variable binding would be more efficient. However, I've encountered difficulties in making it work as expected.
In my primary view, I have set the bind config as bind: {height: 'viewportHeight'}
. In the view model, I defined
data: { viewportHeight: Ext.getViewportHeight()}
. This view model is then extended with the view model for the panel class, and I include bind: {height: 'viewportHeight'}
in the view.
My understanding was that this was how bindings function in Ext js, but the value for viewportHeight remains constant at the initial viewport height and does not get updated when the window is resized, failing to resize the panel accordingly.
What am I missing regarding variable binding in Ext js?