Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
logging-scratch-gui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Goessmann
logging-scratch-gui
Commits
c8f04c09
Commit
c8f04c09
authored
7 years ago
by
Paul Kaplan
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Merge pull request #779 from paulkaplan/fix-multi-refresh"
This reverts commit
5b9e8aa0
, reversing changes made to
4cb65dc5
.
parent
cac1cc95
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/containers/blocks.jsx
+3
-0
3 additions, 0 deletions
src/containers/blocks.jsx
with
3 additions
and
0 deletions
src/containers/blocks.jsx
+
3
−
0
View file @
c8f04c09
...
...
@@ -82,10 +82,12 @@ class Blocks extends React.Component {
return
;
}
// @todo hack to resize blockly manually in case resize happened while hidden
// @todo hack to reload the workspace due to gui bug #413
if
(
this
.
props
.
isVisible
)
{
// Scripts tab
this
.
workspace
.
setVisible
(
true
);
this
.
props
.
vm
.
refreshWorkspace
();
window
.
dispatchEvent
(
new
Event
(
'
resize
'
));
this
.
workspace
.
toolbox_
.
refreshSelection
();
}
else
{
this
.
workspace
.
setVisible
(
false
);
}
...
...
@@ -176,6 +178,7 @@ class Blocks extends React.Component {
const
dom
=
this
.
ScratchBlocks
.
Xml
.
textToDom
(
data
.
xml
);
this
.
ScratchBlocks
.
Xml
.
domToWorkspace
(
dom
,
this
.
workspace
);
this
.
ScratchBlocks
.
Events
.
enable
();
this
.
workspace
.
toolbox_
.
refreshSelection
();
if
(
this
.
props
.
vm
.
editingTarget
&&
this
.
state
.
workspaceMetrics
[
this
.
props
.
vm
.
editingTarget
.
id
])
{
const
{
scrollX
,
scrollY
,
scale
}
=
this
.
state
.
workspaceMetrics
[
this
.
props
.
vm
.
editingTarget
.
id
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment