Forums

Modal window shifts after reopening.

ByBus 14 Dec, 2017
At the first time the window opens correctly. If I close it and open it again, it appears at the bottom of the screen. How to fix it?[attachment=110120_20171214155323_snap1-cr-jpg.jpg][/attachment]
[attachment=110120_20171214155403_snap2-cr-jpg.jpg][/attachment]
ByBus 16 Dec, 2017
At first opening style of a modal window is:
<div class="ui small  modal form-archvizdoma transition visible active" style="margin-top: -353px; display: block !important;">FORMCONTENT</div>

After reopening margin-top changes to 0px:

<div class="ui small  modal form-archvizdoma transition visible active" style="margin-top: 0px; display: block !important;">FORMCONTENT</div>


How to fix it?
ByBus 17 Dec, 2017
This helped me to fix the problem.

in \libraries\cegcore2\admin\extensions\chronofc\views\form\form_output.php
I've replaced line 59:
$modal_def = '$(".ui.modal.form-'.$form_id.'").modal('.json_encode($settings).').modal("show");';

with these lines:

$foo ="'setting',";
$modal_def = '$(".ui.modal.form-'.$form_id.'").modal('.$foo.json_encode($settings).').modal("show");';
ByBus 29 Mar, 2018
still not fixed in last update.
This topic is locked and no more replies can be posted.