Skip to content

Commit

Permalink
fix(screen): fix screen active content size
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed May 10, 2020
1 parent 44e0b76 commit 0bc5996
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/environments/Core.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ export default {
if (!this.ready && !screenActive) {
this.hasDisk = false;
}
this.onResize();
if (screenActive) {
this.$nextTick(() => {
this.onResize();
});
}
},
screenActiveAnimation () {
Expand Down
1 change: 0 additions & 1 deletion src/components/environments/atoms/SymbolWrapper/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export default {
startMove (position) {
const rootBounds = this.getRootBounds();
console.log(rootBounds.position.toString());
this.positions.lastPosition = ipoint(this.layout.position);
this.positions.scrollOffset = ipoint(this.scrollOffset);
this.positions.start = position;
Expand Down

0 comments on commit 0bc5996

Please sign in to comment.