JSFiddle - React, Tailwind, and code Playground
HTML
<button onclick="mostrarDetalleFactura()">dsfdsfsd</button>
<div id="detalles">
<label >Offset Child Element</label>
</div>
JavaScript
function mostrarDetalleFactura() {
$("#detalles").dialog({
autoOpen: true,
title: 'Histórico de Estados - ',
width: 500,
height: 'auto',
modal: true
}).position({
my: "right+50 top-50%",
at: "center",
of: "#top-menu"
});
hideProgress();
}