From 8ec6bb4758d91717176bf84fb38b9d5b90a0c5e9 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 27 Nov 2019 19:35:19 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B01666=20-=20Fix=20missing=20scroll=20bar?= =?UTF-8?q?=20missing=20in=20modal=20window=20"Create=20a=20new=20field"?= =?UTF-8?q?=20from=20Request=20Template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/linksdirectwidget.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/js/linksdirectwidget.js b/js/linksdirectwidget.js index 4a2ec31360..fc04932487 100644 --- a/js/linksdirectwidget.js +++ b/js/linksdirectwidget.js @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2013-2019 Combodo SARL + * + * This file is part of iTop. + * + * iTop is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * iTop is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + */ + // jQuery UI style "widget" for managing 1:n links "in-place" $(function() { @@ -172,6 +190,7 @@ $(function() modal: true, width: 'auto', height: 'auto', + maxHeight: $(window).height() - 50, position: { my: "center", at: "center", of: window }, close: function() { me._onDlgClose(); } });