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
9ae15246
Commit
9ae15246
authored
Oct 09, 2019
by
Evan W. Patton
Committed by
Susan Rati Lane
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse flydown SVG rather than making orphans (#1876)
Change-Id: I34fc7bb333208d59e9186800fe2696621c9971af
parent
1967dba7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
appinventor/blocklyeditor/src/field_flydown.js
appinventor/blocklyeditor/src/field_flydown.js
+1
-2
No files found.
appinventor/blocklyeditor/src/field_flydown.js
View file @
9ae15246
...
...
@@ -151,12 +151,11 @@ Blockly.FieldFlydown.prototype.showFlydown_ = function() {
Blockly
.
hideChaff
();
// Hide open context menus, dropDowns, flyouts, and other flydowns
Blockly
.
FieldFlydown
.
openFieldFlydown_
=
this
;
// Remember field to which flydown is attached
var
flydown
=
Blockly
.
getMainWorkspace
().
getFlydown
();
var
flydownSvg
=
flydown
.
createDom
(
this
.
flyoutCSSClassName
);
// Add flydown to top-level svg, *not* to main workspace svg
// This is essential for correct positioning of flydown via translation
// (If it's in workspace svg, it will be additionally translated by
// workspace svg translation relative to Blockly.svg.)
Blockly
.
getMainWorkspace
().
getParentSvg
().
appendChild
(
flydown
Svg
);
Blockly
.
getMainWorkspace
().
getParentSvg
().
appendChild
(
flydown
.
svgGroup_
);
// adjust scale for current zoom level
flydown
.
workspace_
.
setScale
(
flydown
.
targetWorkspace_
.
scale
);
flydown
.
setCSSClass
(
this
.
flyoutCSSClassName
);
// This could have been changed by another field.
...
...
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