Skip to content

Commit

Permalink
Merge pull request #14 from jacobadenbaum/feature/autoscaled_height
Browse files Browse the repository at this point in the history
Update default for `browse` to autoscale height
  • Loading branch information
pdeffebach authored Apr 19, 2021
2 parents 3ea757c + 6a6cc4b commit 29ef0c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FloatingTableView.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ julia> browse(t, dark = true)
See also: [`showtable`](@ref)
"""
function browse(df; kwargs...)
function browse(df; height = "100vh", kwargs...)
if iswinnull() || !active(current())
w = Window()
current(w)
body!(current(), showtable(df; kwargs...))
body!(current(), showtable(df; height = height, kwargs...))
else
body!(current(), showtable(df; kwargs...))
body!(current(), showtable(df; height = height, kwargs...))
end

return nothing
Expand Down

0 comments on commit 29ef0c9

Please sign in to comment.