From fc9328e4f517ffe0050b8df5386b7c5f0ef65748 Mon Sep 17 00:00:00 2001 From: balen Date: Tue, 17 Sep 2024 14:59:53 -0400 Subject: [PATCH] Fix issue of box moving to bottom of image on resize --- app/javascript/stylesheets/transcriptions.scss | 2 +- app/views/shared/_transcriber_app.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/stylesheets/transcriptions.scss b/app/javascript/stylesheets/transcriptions.scss index 6b226cec..d4dfad2c 100755 --- a/app/javascript/stylesheets/transcriptions.scss +++ b/app/javascript/stylesheets/transcriptions.scss @@ -384,7 +384,7 @@ border: 1px solid hsla(0, 100%, 0%, 0.3); background: hsla(268, 100%, 68%, 0.3); z-index: 80; - position: absolute; + position: absolute !important; cursor: default; &.helper { diff --git a/app/views/shared/_transcriber_app.html.erb b/app/views/shared/_transcriber_app.html.erb index 77c65963..1fd3bec5 100644 --- a/app/views/shared/_transcriber_app.html.erb +++ b/app/views/shared/_transcriber_app.html.erb @@ -453,7 +453,7 @@ $box.resizable("destroy"); pageCanvas.enableScrolling() $(document).off("keyup.draw.resize"); - $(document).off("click.draw.resize"); // THIS IS A PROBLEM + $(document).off("click.draw.resize"); }); } });