projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix generic plugin UI for plugins with only properties
[ardour.git]
/
gtk2_ardour
/
port_matrix_row_labels.cc
diff --git
a/gtk2_ardour/port_matrix_row_labels.cc
b/gtk2_ardour/port_matrix_row_labels.cc
index ff7ac6a48ad29b607a28a816ab6d307836a65939..893313c607012b4c93d295bb125269eba6800c7f 100644
(file)
--- a/
gtk2_ardour/port_matrix_row_labels.cc
+++ b/
gtk2_ardour/port_matrix_row_labels.cc
@@
-25,14
+25,16
@@
#include "gtkmm2ext/colors.h"
#include "utils.h"
#include "port_matrix_row_labels.h"
#include "gtkmm2ext/colors.h"
#include "utils.h"
#include "port_matrix_row_labels.h"
+#include "port_matrix_column_labels.h"
#include "port_matrix.h"
#include "port_matrix_body.h"
#include "pbd/i18n.h"
using namespace std;
#include "port_matrix.h"
#include "port_matrix_body.h"
#include "pbd/i18n.h"
using namespace std;
-PortMatrixRowLabels::PortMatrixRowLabels (PortMatrix* m, PortMatrixBody* b)
+PortMatrixRowLabels::PortMatrixRowLabels (PortMatrix* m, PortMatrixBody* b
, PortMatrixColumnLabels& cols
)
: PortMatrixLabels (m, b)
: PortMatrixLabels (m, b)
+ , _column_labels (cols)
{
}
{
}
@@
-93,6
+95,13
@@
PortMatrixRowLabels::compute_dimensions ()
_width += _longest_port_name;
_width += name_pad() * 2;
}
_width += _longest_port_name;
_width += name_pad() * 2;
}
+
+ uint32_t needed_by_columns = _column_labels.dimensions().second * tan (angle());
+
+ if (_width < needed_by_columns) {
+ _longest_bundle_name += (needed_by_columns - _width);
+ _width = needed_by_columns;
+ }
}
}