Buy Now
Sign in

Modal window shifts after reopening.

ByBus , December 14 2017
B
ByBus
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?Snap1_cr.jpg
Snap2_cr.jpg
Attachments
Snap1_cr.jpg
Snap1_cr.jpg
(81.8 KiB)
81 Downloads/Views
Snap2_cr.jpg
Snap2_cr.jpg
(86.4 KiB)
73 Downloads/Views
B
ByBus
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?
B
ByBus
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");';
B
ByBus
still not fixed in last update.