Skip to content

Commit

Permalink
Update Stethoscope.sc
Browse files Browse the repository at this point in the history
- setter bounds_ now has a message if the width is less than 264.
- Added getter bounds.
  • Loading branch information
prko committed May 5, 2024
1 parent 20f4b17 commit 7ea3085
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SCClassLibrary/Common/GUI/tools/Stethoscope.sc
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,14 @@ Stethoscope {
}

bounds_ { arg rect;
if( window.notNil ) { window.bounds_(rect.asRect) };
if( window.notNil ) {
if (rect.width < 264) {
"The width value you set will be changed to 264, the minimum width.".postln;
};
window.bounds_(rect.asRect)
};
}
bounds { ^this.window.bounds }
}

BusScopeSynth {
Expand Down

0 comments on commit 7ea3085

Please sign in to comment.