Fixes bug where editor would fail to update height when offscreen.

Bug caused by layer measurements always returning 0 when layer is detached from DOM.

Fix: if scheduleHeightUpdate is called while isVisibleInWindow is false, this update sets up an observer and triggers the update when isVisibleInWindow becomes true again.