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
|
||||
* fixed editing cells in multi-page list watchers
|
||||
* 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:**
|
||||
* New Hebrew translation
|
||||
* Ukranian
|
||||
|
|
|
@ -12412,18 +12412,31 @@ CommentMorph.prototype.toggleExpand = function () {
|
|||
this.isCollapsed = !this.isCollapsed;
|
||||
this.fixLayout();
|
||||
this.align();
|
||||
if (!this.isCollapsed && this.parent) {
|
||||
this.parent.add(this); // come to front
|
||||
if (!this.isCollapsed) {
|
||||
this.comeToFront();
|
||||
}
|
||||
};
|
||||
|
||||
CommentMorph.prototype.comeToFront = function () {
|
||||
if (this.parent) {
|
||||
this.parent.add(this);
|
||||
this.changed();
|
||||
}
|
||||
};
|
||||
|
||||
// CommentMorph events:
|
||||
|
||||
CommentMorph.prototype.mouseClickLeft = function () {
|
||||
this.comeToFront();
|
||||
};
|
||||
|
||||
// CommentMorph layout:
|
||||
|
||||
CommentMorph.prototype.layoutChanged = function () {
|
||||
// react to a change of the contents area
|
||||
this.fixLayout();
|
||||
this.align();
|
||||
this.comeToFront();
|
||||
};
|
||||
|
||||
CommentMorph.prototype.fixLayout = function () {
|
||||
|
|
Ładowanie…
Reference in New Issue