webstaff: throw a kitchen sink at double-scrollbar issues
authorGalen Charlton <gmc@esilibrary.com>
Wed, 30 Nov 2016 10:25:52 +0000 (05:25 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 30 Nov 2016 10:25:52 +0000 (05:25 -0500)
commit25c8fcad5a0cb36c1199a1ea684d8aeb35a68418
tree14ec0aac53ce4071bd0731f06103c640aed690a5
parent3f2b108b076a7db358a2c3e1da9700f3b6795be0
webstaff: throw a kitchen sink at double-scrollbar issues

This patch ameliorates, but does not eliminate, a bunch
of cases where double-scrollbars could appear.

[1] Adds iframe-resizer (https://github.com/davidjbradshaw/iframe-resizer, MIT license)
    as an option for automatically adjusting the height of an iframe
    to fit the contents.  This can be enabled by ensuring that
    the page to be embedded brings in

    /js/ui/default/staff/build/js/iframeResizer.contentWindow.min.j

    and adding an 'autoresize' attribute to the egEmbedFrame directive.

    This is now used by the legacy reports page.

[2] Gives a 'min-height' attribute to egEmbedFrame and sets a
    value for Dojo grid interfaces embedded by local and server admistration.
[3] Adds a 'allow-escape' attribute to egEmbedFrame; when set to
    true, adds buttons to allow the user to open the embedded page
    in a new tab.
[4] Removes some extraneous <div>s that were interferring with resizing
    for some grids.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
19 files changed:
Open-ILS/src/templates/conify/global/cat/authority/browse_axis.tt2
Open-ILS/src/templates/conify/global/cat/authority/browse_axis_authority_field_map.tt2
Open-ILS/src/templates/conify/global/cat/authority/control_set.tt2
Open-ILS/src/templates/conify/global/cat/authority/control_set_authority_field.tt2
Open-ILS/src/templates/conify/global/cat/authority/control_set_bib_field.tt2
Open-ILS/src/templates/conify/global/cat/authority/thesaurus.tt2
Open-ILS/src/templates/conify/global/config/actor_sip_fields.tt2
Open-ILS/src/templates/conify/global/config/asset_sip_fields.tt2
Open-ILS/src/templates/conify/global/config/global_flag.tt2
Open-ILS/src/templates/conify/global/config/rule_circ_duration.tt2
Open-ILS/src/templates/staff/base_js.tt2
Open-ILS/src/templates/staff/reporter/t_legacy.tt2
Open-ILS/src/templates/staff/share/t_eframe.tt2
Open-ILS/web/js/ui/default/staff/Gruntfile.js
Open-ILS/web/js/ui/default/staff/admin/local/app.js
Open-ILS/web/js/ui/default/staff/admin/server/app.js
Open-ILS/web/js/ui/default/staff/bower.json
Open-ILS/web/js/ui/default/staff/services/eframe.js
Open-ILS/web/reports/oils_rpt_common.xhtml