JSFiddle - React, Tailwind, and code Playground
HTML
<div id="constrained">Content</div>
<div id="nonconst">Other content</div>
CSS
#constrained{
height:100px;
}
.magicHeight
{
height: 1069px;
}
JavaScript
alert(IsHeightSet('#constrained'));
alert(IsHeightSet('#nonconst'));
function IsHeightSet(id)
{
var clone = $(id).clone();
clone.addClass('magicHeight');
return (clone.height() == 1069)? false : true;
}