Move and adjust variable controlling size of audio RX waterfall.

Closes recently-opened gap between control UI and waterfall.
This commit is contained in:
Jared Boone 2016-01-27 14:20:15 -08:00
parent 6917a38106
commit 3b7bec542c
2 changed files with 2 additions and 1 deletions

View File

@ -505,7 +505,6 @@ void ReceiverView::on_modulation_changed(ReceiverModel::Mode mode) {
if( widget_content ) {
add_child(widget_content.get());
const ui::Dim header_height = 3 * 16;
const ui::Rect rect { 0, header_height, parent_rect.width(), static_cast<ui::Dim>(parent_rect.height() - header_height) };
widget_content->set_parent_rect(rect);
}

View File

@ -363,6 +363,8 @@ public:
void focus() override;
private:
static constexpr ui::Dim header_height = 2 * 16;
RSSI rssi {
{ 21 * 8, 0, 6 * 8, 4 },
};