toolBarHeight always set to 0

Currently, the toolBarHeight variable is always being set to 0 because
the ‘narrative-popup’ is hidden. The toolBarHeight variable should be
set after the ‘narrative-popup’ is visible so the JavaScript can
accurately calculate the height of the element.