* Add a resize controller. We set the default value programatically
* because we use padding, which skews the height calculations in
* ResizeController.
*/
// TODO: Move this to the presenter.
ResizeController splitterController =
new ResizeController(res, Elements.asJsElement(splitter),
new ResizeController.ElementInfo(Elements.asJsElement(bottomSections),
ResizeProperty.HEIGHT, css.bottomSectionsHeight()),
new ResizeController.ElementInfo(Elements.asJsElement(bottomSectionsAnimator),
ResizeProperty.HEIGHT, css.bottomSectionsHeight()),
new ResizeController.ElementInfo(Elements.asJsElement(bottomSectionsContent),
ResizeProperty.HEIGHT, css.bottomSectionsHeight()));
splitterController.setNegativeDelta(true);
splitterController.start();
}