I have dynamic content inside of a jqxWindow element.
How do I resize the jqxWindow on demand in order to auto-size to the content?
You can use .jqxWindow({height: 'auto'})
but it only works on initialization.
I have dynamic content inside of a jqxWindow element.
How do I resize the jqxWindow on demand in order to auto-size to the content?
You can use .jqxWindow({height: 'auto'})
but it only works on initialization.
I ended up accomplishing this with the following technique.
inject a div to serve as a marker at the bottom of the dynamic content
get the new height using jquery with
.position().top
resize using
.jqxWindow()
For example:
Notes:
the code should be optimized for performance (caching, efficient lookups, etc -- above code is just for the idea).
don't forget to wait for dynamic content to be added before checking top position of the marker
if for some reason you need to inject the marker each time you want to resize, don't forget to remove the marker after the resize