Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
9dacdde6
Commit
9dacdde6
authored
Oct 30, 2019
by
Evan W. Patton
Committed by
Susan Rati Lane
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement extra null checks on flydown
Change-Id: I9fc9e5516c329ac8b286fc075ad0b863018164bb
parent
ece2e892
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
appinventor/blocklyeditor/src/block_svg.js
appinventor/blocklyeditor/src/block_svg.js
+8
-3
No files found.
appinventor/blocklyeditor/src/block_svg.js
View file @
9dacdde6
...
...
@@ -66,9 +66,14 @@ Blockly.BlockSvg.prototype.onMouseDown_ = (function(func) {
workspace
.
getParentSvg
().
parentNode
.
focus
();
}
if
(
Blockly
.
FieldFlydown
.
openFieldFlydown_
)
{
if
(
goog
.
dom
.
contains
(
Blockly
.
getMainWorkspace
().
flydown_
.
svgGroup_
,
this
.
svgGroup_
))
{
var
flydown
=
Blockly
.
getMainWorkspace
().
getFlydown
();
if
(
flydown
)
{
if
(
goog
.
dom
.
contains
(
flydown
.
svgGroup_
,
this
.
svgGroup_
))
{
//prevent hiding the flyout if a child block is the target
Blockly
.
getMainWorkspace
().
flydown_
.
shouldHide
=
false
;
flydown
.
shouldHide
=
false
;
}
}
else
{
console
.
warn
(
'
openFieldFlydown_ was set but flydown_ was undefined!
'
);
}
}
var
retval
=
func
.
call
(
this
,
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment