app/javascript/packs/cm_admin/scaffolds.js in cm-admin-0.8.9 vs app/javascript/packs/cm_admin/scaffolds.js in cm-admin-0.9.0
- old
+ new
@@ -14,10 +14,13 @@
Sortable.create(el[0],{
handle: '.dragger',
animation: 150
});
}
+ var headerElemHeight = $('.page-top-bar').height() + 64
+ var calculatedHeight = "calc(100vh - " + headerElemHeight+"px"+")"
+ $('.new-admin-table').css("maxHeight", calculatedHeight);
});
$(document).on("keypress keyup blur", "[data-behaviour='decimal-only'], [data-behaviour='filter'][data-filter-type='range']", function (e) {
var charCode = (e.which) ? e.which : e.keyCode
if (charCode > 31 && (charCode != 46 &&(charCode < 48 || charCode > 57)))
@@ -68,6 +71,6 @@
$('.drawer-container').removeClass('drawer-slide-in');
$('.drawer-container').addClass('drawer-slide-out');
setTimeout(() => {
$('.cm-drawer').addClass('hidden');
}, 300);
-});
\ No newline at end of file
+});