Skip to content

Commit f097fc0

Browse files
authored
Merge pull request #8252 from google/develop
chore: merge develop into v12
2 parents 989c91f + a834e02 commit f097fc0

File tree

9 files changed

+220
-137
lines changed

9 files changed

+220
-137
lines changed

.github/workflows/appengine_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
path: _deploy/
4343

4444
- name: Deploy to App Engine
45-
uses: google-github-actions/deploy-appengine@v2.1.0
45+
uses: google-github-actions/deploy-appengine@v2.1.2
4646
# For parameters see:
4747
# https://github.com/google-github-actions/deploy-appengine#inputs
4848
with:

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# TODO (#2114): re-enable osx build.
1919
# os: [ubuntu-latest, macos-latest]
2020
os: [ubuntu-latest]
21-
node-version: [18.x, 20.x]
21+
node-version: [18.x, 20.x, 22.x]
2222
# See supported Node.js release schedule at
2323
# https://nodejs.org/en/about/releases/
2424

core/comments/comment_view.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export class CommentView implements IRenderedElement {
9999
/** Whether this comment view has been disposed or not. */
100100
private disposed = false;
101101

102+
/** Size of this comment when the resize drag was initiated. */
103+
private preResizeSize?: Size;
104+
102105
constructor(private readonly workspace: WorkspaceSvg) {
103106
this.svgRoot = dom.createSvgElement(Svg.G, {
104107
'class': 'blocklyComment blocklyEditable',
@@ -334,7 +337,7 @@ export class CommentView implements IRenderedElement {
334337
* elements to reflect the new size, and triggers size change listeners.
335338
*/
336339
setSize(size: Size) {
337-
const oldSize = this.size;
340+
const oldSize = this.preResizeSize || this.size;
338341
this.setSizeWithoutFiringEvents(size);
339342
this.onSizeChange(oldSize, this.size);
340343
}
@@ -519,6 +522,8 @@ export class CommentView implements IRenderedElement {
519522
return;
520523
}
521524

525+
this.preResizeSize = this.getSize();
526+
522527
// TODO(#7926): Move this into a utils file.
523528
this.workspace.startDrag(
524529
e,
@@ -559,6 +564,7 @@ export class CommentView implements IRenderedElement {
559564
}
560565
// When ending a resize drag, notify size change listeners to fire an event.
561566
this.setSize(this.size);
567+
this.preResizeSize = undefined;
562568
}
563569

564570
/** Resizes the comment in response to a drag on the resize handle. */

core/events/events_abstract.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ export abstract class Abstract {
108108
*
109109
* @returns The workspace the event belongs to.
110110
* @throws {Error} if workspace is null.
111-
* @internal
112111
*/
113112
getEventWorkspace_(): Workspace {
114113
let workspace;

demos/blockfactory/app_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ AppController.prototype.assignBlockFactoryClickHandlers = function() {
507507

508508
document.getElementById('helpButton').addEventListener('click',
509509
function() {
510-
open('https://developers.google.com/blockly/custom-blocks/block-factory',
510+
open('https://developers.google.com/blockly/guides/create-custom-blocks/legacy-blockly-developer-tools',
511511
'BlockFactoryHelp');
512512
});
513513

demos/blockfactory/factory.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ button, .buttonStyle {
127127
float: right;
128128
}
129129

130+
#legacyBanner {
131+
border: #ccc 1px solid;
132+
background-color: #FFCDD2;
133+
margin: 4px;
134+
padding: 4px;
135+
}
136+
130137
#blockFactoryContent {
131138
height: 85%;
132139
width: 100%;

demos/blockfactory/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ <h1><a href="https://developers.google.com/blockly/">Blockly</a> &gt;
5353
<button class="privacyButton" title="Open Google privacy policy"><a class="privacyLink" href="https://policies.google.com/privacy">Privacy</a>
5454
</button>
5555
</h1>
56+
<div id="legacyBanner">
57+
This version of Developer Tools is only compatible with Blockly version 10 and earlier. Try the <a target="_blank" href="https://google.github.io/blockly-samples/examples/developer-tools/index.html">new Block Factory</a> and <a target="_blank" href="https://developers.google.com/blockly/guides/create-custom-blocks/blockly-developer-tools#import_from_legacy_block_factory">learn how to migrate your blocks</a>.
58+
</div>
5659
<div id="tabContainer">
5760
<div id="blockFactory_tab" class="tab tabon">Block Factory</div>
5861
<div id="blocklibraryExporter_tab" class="tab taboff">Block Exporter</div>

0 commit comments

Comments
 (0)