Avoid three-scrollbar situation in Acq -> Providers -> Invoices tab user/senator/lp-922128
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 30 Jan 2012 18:41:55 +0000 (13:41 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 30 Jan 2012 18:52:17 +0000 (13:52 -0500)
commitad27cf936d528ef132e66ea1a548aa377a62dea0
tree7d7d8756b38ec8b0f4ca2712e23aba2194f715ec
parentf2a40ab35ce77f41eda6a7101026dadd5e8e4380
Avoid three-scrollbar situation in Acq -> Providers -> Invoices tab

You can certainly still get two scrollbars here, which is unfortunate,
but at least you shouldn't be able to get three anymore.

This solution also gives us a way to deal with the same problem if/when
it is seen in other interfaces (I feel like I've seen it occasionally).

Before now, AutoGrid created a content pane dynamically and placed
place it in the DOM before its own root DOM node.  Depending on where
that lands in a surrounding hierarchy of dijit.layout.ContentPane
objects, that can create a situation where more scrollbars are generated
to show more DOM objects in a limited space.  This generated content
pane is where AutoGrid puts its Back, Next and potentially Filter links.

Now you can specify a DOM node where you want that material to go
instead, and control the layout better.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/templates/conify/global/acq/provider.tt2
Open-ILS/web/js/dojo/openils/widget/AutoGrid.js