develop
// FIXME: deprecated
// TODO: consider the case where height doesn't fit on either side (top or bottom)