mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
VKeybd: shrink height when hiding config pane
This commit is contained in:
parent
3ddfb4ffe3
commit
cc9f941488
1 changed files with 10 additions and 0 deletions
|
|
@ -425,7 +425,12 @@ VirtualKeyboardWindow::toggle_config (GdkEventButton* ev)
|
||||||
if (a) {
|
if (a) {
|
||||||
_cfg_box->show ();
|
_cfg_box->show ();
|
||||||
} else {
|
} else {
|
||||||
|
const int child_height = _cfg_box->get_height ();
|
||||||
_cfg_box->hide ();
|
_cfg_box->hide ();
|
||||||
|
Gtk::Requisition wr;
|
||||||
|
get_size (wr.width, wr.height);
|
||||||
|
wr.height -= child_height;
|
||||||
|
resize (wr.width, wr.height);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -438,7 +443,12 @@ VirtualKeyboardWindow::toggle_bankpatch (GdkEventButton*)
|
||||||
if (a) {
|
if (a) {
|
||||||
_pgm_box->show ();
|
_pgm_box->show ();
|
||||||
} else {
|
} else {
|
||||||
|
const int child_height = _pgm_box->get_height ();
|
||||||
_pgm_box->hide ();
|
_pgm_box->hide ();
|
||||||
|
Gtk::Requisition wr;
|
||||||
|
get_size (wr.width, wr.height);
|
||||||
|
wr.height -= child_height;
|
||||||
|
resize (wr.width, wr.height);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue