Permalink
Browse files

Merge branch 'master' of github.com:nuss/CVCenter

  • Loading branch information...
nuss committed May 25, 2013
2 parents c16a588 + 1e91cbb commit a336d70903127cdb7497fa7a92c71c5406ef7465
Showing with 16 additions and 1 deletion.
  1. +16 −1 CVCenter/CVWidgetEditor.sc
View
@@ -867,6 +867,7 @@ CVWidgetEditor {
amendActionsList { |widget, addRemove, name, action, slot, active|
var staticTextFont = Font("Arial", 10);
+ var actTop;
switch(addRemove,
\add, {
@@ -928,13 +929,27 @@ CVWidgetEditor {
;
},
\remove, {
+ actTop = actionsList[name].nameField.bounds.top;
[
actionsList[name].nameField,
actionsList[name].activate,
actionsList[name].removeBut,
actionsList[name].actionView
].do(_.remove);
- flow3.reFlow(thisEditor[\tabs].views[3]);
+ actionsList.removeAt(name);
+ actionsList.pairsDo({ |actName, it|
+ if(it.nameField.bounds.top > actTop, {
+ #[nameField, activate, removeBut, actionView].do({ |name|
+ it[name].bounds_(Rect(
+ it[name].bounds.left,
+ it[name].bounds.top-76,
+ it[name].bounds.width,
+ it[name].bounds.height
+ ))
+ })
+ })
+ });
+ flow3.top_(flow3.top-76);
}
)

0 comments on commit a336d70

Please sign in to comment.