Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pony
tsview
Commits
9fad7d70c557
Commit
0a07e5d3
authored
Jul 19, 2019
by
André Espaze
Browse files
Research on absolute and z-index for selection menu
parent
2e664b4bf8b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
elm/KeywordMultiSelector.elm
View file @
9fad7d70
...
...
@@ -30,7 +30,6 @@ view cfg ctx =
inputClass
=
classes
[
T
.
input_reset
,
T
.
dtc
,
T
.
ba
,
T
.
b__black_20
,
T
.
pa2
...
...
@@ -38,26 +37,26 @@ view cfg ctx =
,
T
.
w_100
]
in
[
input
[
inputClass
,
onInput
cfg
.
onInputMsg
,
autofocus
True
]
[]
]
input
[
inputClass
,
onInput
cfg
.
onInputMsg
,
autofocus
True
]
[]
cols
=
let
attrs
=
[
classes
[
T
.
dtc
,
T
.
pa1
]
]
render
(
selectorCfg
,
items
)
=
ItemSelector
.
view
selectorCfg
(
ItemSelector
.
Context
items
ctx
.
selectedItems
)
in
List
.
map
(
\
x
->
div
attrs
[
render
x
])
[
(
cfg
.
searchSelector
,
ctx
.
searchedItems
)
,
(
cfg
.
actionSelector
,
ctx
.
selectedItems
)
]
div
[
classes
[
T
.
dt
,
T
.
dt__fixed
]
]
(
List
.
map
(
\
x
->
div
[
classes
[
T
.
dtc
,
T
.
pa1
]
]
[
render
x
])
[
(
cfg
.
searchSelector
,
ctx
.
searchedItems
)
,
(
cfg
.
actionSelector
,
ctx
.
selectedItems
)
]
)
in
div
cfg
.
divAttrs
(
List
.
map
(
div
[
classes
[
T
.
dt
,
T
.
dt__fixed
]
])
[
searchInput
,
cols
]
)
[
searchInput
-- XXX w_90 should not be there but how to fix it ?
,
div
[
classes
[
T
.
w_90
,
T
.
absolute
,
T
.
z_2
,
T
.
bg_white_80
]
]
[
cols
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment