| 1164 | |
| 1165 | |
| 1166 | void MixerBoard::UpdateWidth() |
| 1167 | { |
| 1168 | int newWidth = this->GetTrackClustersWidth(); |
| 1169 | |
| 1170 | // Min width is one cluster wide, plus margins. |
| 1171 | if (newWidth < MIXER_BOARD_MIN_WIDTH) |
| 1172 | newWidth = MIXER_BOARD_MIN_WIDTH; |
| 1173 | |
| 1174 | mScrolledWindow->SetVirtualSize(newWidth, -1); |
| 1175 | this->GetParent()->SetSize(newWidth + kDoubleInset, -1); |
| 1176 | } |
| 1177 | |
| 1178 | // |
| 1179 | // private methods |
no test coverage detected