inst/explorer/server/3_event_corpus_map_click/ui_positioning.R

# Positioning of UI elements depending on height of other -----------------
if (plot_mode$mode == "data_365") {

    div_height <- session_variables$day_plot_height
    max_height <- 200  # corresponds to max-height in css for #dag_kart

    if (div_height > max_height) div_height <- max_height

    shinyjs::runjs(sprintf(
        "$('.class_doc_box .nav-tabs-custom').css({
            'top' : %f + 140 + 'px'
        });",
        div_height
    ))

} else if (plot_mode$mode == "data_dok") {
    shinyjs::runjs("$('.class_doc_box .nav-tabs-custom').css({
            'top' : 60 + 'px',
        });")
}

Try the corporaexplorer package in your browser

Any scripts or data that you put into this service are public.

corporaexplorer documentation built on June 20, 2022, 5:20 p.m.