Skip to content

Commit

Permalink
Update default for browse to autoscale height
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobadenbaum committed Apr 19, 2021
1 parent 3ea757c commit 6a6cc4b
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 6a6cc4b

Please sign in to comment.