Last updated Dec 8, 2017

Adjusting the gadget height when the window is resized

This page is part of the Gadget Developers' JavaScript Cookbook.

How do I make gadgets.window.adjustHeight() be called when the window is resized?

Enable the onResizeAdjustHeight option on the view object:

view: {
  onResizeAdjustHeight: true,
  template: ...

Gadget Developers' JavaScript Cookbook

Using the Atlassian Gadgets JavaScript Framework

Rate this page: