File tree 1 file changed +11
-14
lines changed
1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change 781
781
export-spacers #(vec (repeat column-depth (vec (repeat row-depth nil ))))
782
782
control-panel [:div {:style {:position :relative
783
783
:background-color " white"
784
- :width (if max-width
785
- max-width
786
- " 1fr"
787
- #_(px (apply + showing-column-widths)))}}
784
+ :width (or max-width " 1fr" )}}
788
785
[:div {:style {:position :absolute
789
786
:right 0 }}
790
787
(when show-export-button?
922
919
:selection-grid-spec selection-grid-spec}]
923
920
; ; FIXME This changes on different browsers - do we need to get it dynamically?
924
921
; ; FIXME We should use :scrollbar-gutter (chrome>=94)
925
- native-scrollbar-width 10 ]
922
+ native-scrollbar-width 10
923
+ native-width (apply +
924
+ native-scrollbar-width
925
+ showing-column-widths)
926
+ native-height (apply +
927
+ native-scrollbar-width
928
+ showing-row-heights)]
926
929
[:div
927
930
[:div {:on-mouse-enter #(reset! hover? true )
928
931
:on-mouse-leave #(reset! hover? false )
932
935
:display " grid"
933
936
:grid-template-columns (grid-template [(px (apply + max-row-widths))
934
937
(if-not max-width
935
- " 1fr"
936
- (px (cond->
937
- (apply +
938
- native-scrollbar-width
939
- showing-column-widths)
938
+ (str " minmax(0, " (+ 2 native-width) " px)" )
939
+ (px (cond-> native-width
940
940
max-width
941
941
(min
942
942
(parse-long
946
946
:grid-template-rows (grid-template (into (if show-export-button? [" 25px" ] [])
947
947
[showing-column-widths
948
948
(px (apply + max-column-heights))
949
- (px (apply +
950
- 4
951
- native-scrollbar-width
952
- showing-row-heights))]))}}
949
+ (px (+ native-height 4 ))]))}}
953
950
(when show-export-button? [:div ])
954
951
(when show-export-button? control-panel)
955
952
[:div {:style {:display " grid"
You can’t perform that action at this time.
0 commit comments