Jobs is Getting Cut Off
-
So the height of our job board keeps getting cut off because the inserted JS height from the plugin is incorrect. We’ve tried adding some custom CSS and JS to fire to add/remove a height class so it fixes both views, but that doesn’t seem to work. In order to fix this bug, height: 100% !important needs to be added in the listings view, but not in the single job view. Is there anything we can do here?
The JS we original tried was:
function addHeight() { var indexPos = window.location.href.indexOf("#"); var urlLength = window.location.href.length - 1; if(urlLength === indexPos) { $('.greenhouse-job-board .all_jobs').addClass('heightActive'); } else { $('.greenhouse-job-board .all_jobs').removeClass('heightActive'); } } addHeight(); $('.job_goto, .page-subnavigation a.link2, .job_single .return').click(function() { addHeight(); })
but it didn’t seem to be firing right. Ideally, it would be better if we didn’t have to use JS at all and the bug could just be fixed. The example link shows the bug without any of the JS fixes: https://squarefoot.staging.wpengine.com/jobs
The page I need help with: [log in to see the link]
- The topic ‘Jobs is Getting Cut Off’ is closed to new replies.