diff --git a/application/views/lehre/lvplanung/adminZeitverfuegbarkeitData.php b/application/views/lehre/lvplanung/adminZeitverfuegbarkeitData.php index df4888b7d..131a8574e 100644 --- a/application/views/lehre/lvplanung/adminZeitverfuegbarkeitData.php +++ b/application/views/lehre/lvplanung/adminZeitverfuegbarkeitData.php @@ -40,6 +40,7 @@ $filterWidgetArray = array( ucfirst($this->p->t('global', 'notiz')) ), 'datasetRepOptions' => '{ + height: func_height(this), layout: "fitColumns", // fit columns to width of table autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated index: "zeitsperre_id", // assign specific column as unique id (important for row indexing) diff --git a/public/js/lehre/lvplanung/zverfueg.js b/public/js/lehre/lvplanung/zverfueg.js index 6202bf1be..60f5044c1 100644 --- a/public/js/lehre/lvplanung/zverfueg.js +++ b/public/js/lehre/lvplanung/zverfueg.js @@ -1,3 +1,9 @@ + +// Returns relative height (depending on screen size) +function func_height(table) { + return $(window).height() * 0.5; +} + $(function(){ // tableInit is called in the jquery_wrapper when the tableBuilt event was finished