|
1306 | 1306 |
|
1307 | 1307 | /*jshint esversion: 11, bitwise: false*/
|
1308 | 1308 |
|
1309 |
| -var morphicVersion = '2023-March-16'; |
| 1309 | +var morphicVersion = '2023-July-13'; |
1310 | 1310 | var modules = {}; // keep track of additional loaded modules
|
1311 | 1311 | var useBlurredShadows = true;
|
1312 | 1312 |
|
@@ -2765,7 +2765,7 @@ Rectangle.prototype.boundingBox = function () {
|
2765 | 2765 |
|
2766 | 2766 | Rectangle.prototype.center = function () {
|
2767 | 2767 | return this.origin.add(
|
2768 |
| - this.corner.subtract(this.origin).floorDivideBy(2) |
| 2768 | + this.corner.subtract(this.origin).divideBy(2) |
2769 | 2769 | );
|
2770 | 2770 | };
|
2771 | 2771 |
|
@@ -3464,15 +3464,15 @@ Morph.prototype.setBottom = function (y) {
|
3464 | 3464 | Morph.prototype.setCenter = function (aPoint) {
|
3465 | 3465 | this.setPosition(
|
3466 | 3466 | aPoint.subtract(
|
3467 |
| - this.extent().floorDivideBy(2) |
| 3467 | + this.extent().divideBy(2) |
3468 | 3468 | )
|
3469 | 3469 | );
|
3470 | 3470 | };
|
3471 | 3471 |
|
3472 | 3472 | Morph.prototype.setFullCenter = function (aPoint) {
|
3473 | 3473 | this.setPosition(
|
3474 | 3474 | aPoint.subtract(
|
3475 |
| - this.fullBounds().extent().floorDivideBy(2) |
| 3475 | + this.fullBounds().extent().divideBy(2) |
3476 | 3476 | )
|
3477 | 3477 | );
|
3478 | 3478 | };
|
@@ -8261,7 +8261,7 @@ MenuMorph.prototype.adjustWidths = function () {
|
8261 | 8261 | if (item === this.label) {
|
8262 | 8262 | item.text.setPosition(
|
8263 | 8263 | item.center().subtract(
|
8264 |
| - item.text.extent().floorDivideBy(2) |
| 8264 | + item.text.extent().divideBy(2) |
8265 | 8265 | )
|
8266 | 8266 | );
|
8267 | 8267 | }
|
@@ -9919,7 +9919,7 @@ TriggerMorph.prototype.createLabel = function () {
|
9919 | 9919 | TriggerMorph.prototype.fixLayout = function () {
|
9920 | 9920 | this.label.setPosition(
|
9921 | 9921 | this.center().subtract(
|
9922 |
| - this.label.extent().floorDivideBy(2) |
| 9922 | + this.label.extent().divideBy(2) |
9923 | 9923 | )
|
9924 | 9924 | );
|
9925 | 9925 | };
|
|
0 commit comments