disable gallery height calc

This commit is contained in:
Vladimir Mandic
2023-07-01 17:35:03 -04:00
parent fbbb56f6ca
commit ab52ae924f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ function showSubmitButtons(tabname, show) {}
function clearGallery(tabname) {
const gallery = gradioApp().getElementById(`${tabname}_gallery`)
gallery.classList.remove('logo');
gallery.style.height = window.innerHeight - gallery.getBoundingClientRect().top - 200 + 'px'
// gallery.style.height = window.innerHeight - gallery.getBoundingClientRect().top - 200 + 'px'
const footer = gradioApp().getElementById(`${tabname}_footer`)
footer.style.display = 'flex';
}