kopia lustrzana https://github.com/backface/turtlestitch
added more ways to bring a comment to the front
rodzic
9871e323fb
commit
a47999814b
|
@ -31,7 +31,7 @@
|
||||||
* costumes and sounds of clones are now properly shadowed when modifying them programmatically
|
* costumes and sounds of clones are now properly shadowed when modifying them programmatically
|
||||||
* fixed editing cells in multi-page list watchers
|
* fixed editing cells in multi-page list watchers
|
||||||
* recursive calls to "broadcast and wait" execute smoothly again
|
* recursive calls to "broadcast and wait" execute smoothly again
|
||||||
* expanding a collapsed comment now brings it to the front
|
* expanding a collapsed comment or clicking on it now brings it to the front
|
||||||
* **Translation Updates:**
|
* **Translation Updates:**
|
||||||
* New Hebrew translation
|
* New Hebrew translation
|
||||||
* Ukranian
|
* Ukranian
|
||||||
|
|
|
@ -12412,18 +12412,31 @@ CommentMorph.prototype.toggleExpand = function () {
|
||||||
this.isCollapsed = !this.isCollapsed;
|
this.isCollapsed = !this.isCollapsed;
|
||||||
this.fixLayout();
|
this.fixLayout();
|
||||||
this.align();
|
this.align();
|
||||||
if (!this.isCollapsed && this.parent) {
|
if (!this.isCollapsed) {
|
||||||
this.parent.add(this); // come to front
|
this.comeToFront();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
CommentMorph.prototype.comeToFront = function () {
|
||||||
|
if (this.parent) {
|
||||||
|
this.parent.add(this);
|
||||||
this.changed();
|
this.changed();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// CommentMorph events:
|
||||||
|
|
||||||
|
CommentMorph.prototype.mouseClickLeft = function () {
|
||||||
|
this.comeToFront();
|
||||||
|
};
|
||||||
|
|
||||||
// CommentMorph layout:
|
// CommentMorph layout:
|
||||||
|
|
||||||
CommentMorph.prototype.layoutChanged = function () {
|
CommentMorph.prototype.layoutChanged = function () {
|
||||||
// react to a change of the contents area
|
// react to a change of the contents area
|
||||||
this.fixLayout();
|
this.fixLayout();
|
||||||
this.align();
|
this.align();
|
||||||
|
this.comeToFront();
|
||||||
};
|
};
|
||||||
|
|
||||||
CommentMorph.prototype.fixLayout = function () {
|
CommentMorph.prototype.fixLayout = function () {
|
||||||
|
|
Ładowanie…
Reference in New Issue