···239239 in
240240 Lwd.map2 t state ~f:(fun t (state_w, state_h) ->
241241 let tw, th = Ui.layout_width t, Ui.layout_height t in
242242+ let tmw, tmh = Ui.layout_max_width t, Ui.layout_max_height t in
242243 (* let mw, mh = if max then Some tw, Some th else None, None in *)
243244 t
244244- |> Ui.resize ~w:0 ~sw:1 ~h:0 ~sh:1
245245+ |> Ui.resize ~w:0 ~sw:1 ~h:0 ~sh:1 ~mw:10000 ~mh:100000
245246 |> Ui.shift_area state_w.position state_h.position
246247 (* |>Ui.join_y (Ui.atom (I.string A.empty (string_of_int state_w.visible))) *)
247248 (*TODO: make an alternative that has this already set*)
···284285 | None, None ->
285286 ())
286287 |> Ui.mouse_area (scroll_handler state_w state_h)
287287- |> Ui.keyboard_area ?focus (focus_handler state_w state_h))
288288+ |> Ui.keyboard_area ?focus (focus_handler state_w state_h)
289289+ (*restore original mw*)
290290+ |>Ui.resize ~mw:tmw ~mh:tmh
291291+ )
288292;;
289293290294(** A scroll area that allows keyboard scrolling in both x and y directions*)