From 29dc365622142fcbc97604a3f1d4d58b4aee9433 Mon Sep 17 00:00:00 2001 From: Paul Slaughter Date: Fri, 31 Aug 2018 10:19:55 +0000 Subject: [PATCH] Resolve "Persistent banner creates problem for web ide" --- app/assets/javascripts/flash.js | 1 + app/assets/javascripts/ide/components/ide.vue | 4 +- app/assets/stylesheets/framework/layout.scss | 39 +++++++++++ app/assets/stylesheets/page_bundles/ide.scss | 68 ++----------------- app/controllers/ide_controller.rb | 2 +- app/views/ide/index.html.haml | 2 +- ...av_only.html.haml => fullscreen.html.haml} | 4 +- .../46591-fix-ide-height-issues.yml | 5 ++ 8 files changed, 58 insertions(+), 67 deletions(-) rename app/views/layouts/{nav_only.html.haml => fullscreen.html.haml} (61%) create mode 100644 changelogs/unreleased/46591-fix-ide-height-issues.yml diff --git a/app/assets/javascripts/flash.js b/app/assets/javascripts/flash.js index a0af2875ab5..a29de9ae899 100644 --- a/app/assets/javascripts/flash.js +++ b/app/assets/javascripts/flash.js @@ -10,6 +10,7 @@ const hideFlash = (flashEl, fadeTransition = true) => { flashEl.addEventListener('transitionend', () => { flashEl.remove(); + window.dispatchEvent(new Event('resize')); if (document.body.classList.contains('flash-shown')) document.body.classList.remove('flash-shown'); }, { once: true, diff --git a/app/assets/javascripts/ide/components/ide.vue b/app/assets/javascripts/ide/components/ide.vue index 2c8305aa0cc..6a5ab35a16a 100644 --- a/app/assets/javascripts/ide/components/ide.vue +++ b/app/assets/javascripts/ide/components/ide.vue @@ -78,13 +78,13 @@ export default {