Skip to content

Commit 07778ba

Browse files
committed
Release v2.0.1
1 parent cd7122b commit 07778ba

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/assets/js/dialog.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,16 @@ export class KatexInputHelper {
954954
var width = 20 + $("#tableMATRIX").width();
955955
var height = 100 + $("#tableMATRIX").height();
956956
if (width < 240) width = 240;
957-
if (height < 160) height = 160;
958-
$('#wMATRIX').dialog({ title: vme.getLocalText("MATRIX"), width: width, height: height });
957+
if (height < 160) height = 160;
958+
959+
var options = $('#wMATRIX').dialog('options');
960+
$('#wMATRIX').dialog({
961+
title: vme.getLocalText("MATRIX"),
962+
width: width,
963+
height: height,
964+
left: options.left, // HAS NO EFFECT !!
965+
top: options.top
966+
});
959967
$('#wMATRIX').dialog('open');
960968
}
961969

0 commit comments

Comments
 (0)