aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-tabulator/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-06-23 02:18:06 +0200
committerRobert Jaros <rjaros@finn.pl>2019-06-23 02:18:06 +0200
commit1fb687a051d37d6d13bfdcc8f84e6cf1165cadc7 (patch)
tree7dfb8964926f37654f26ce2d6b0f98673365fb67 /kvision-modules/kvision-tabulator/src
parent0c647a465b708829166010218fe0ae61f01de934 (diff)
downloadkvision-1fb687a051d37d6d13bfdcc8f84e6cf1165cadc7.tar.gz
kvision-1fb687a051d37d6d13bfdcc8f84e6cf1165cadc7.tar.bz2
kvision-1fb687a051d37d6d13bfdcc8f84e6cf1165cadc7.zip
Fixed positioning of the context menu for use inside a Tabulator component.
Diffstat (limited to 'kvision-modules/kvision-tabulator/src')
-rw-r--r--kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt
index f5f58010..a6f9c740 100644
--- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt
+++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt
@@ -369,6 +369,7 @@ fun <T : Any> ColumnDefinition<T>.toJs(
{ cell: Tabulator.CellComponent,
onRendered: (callback: () -> Unit) -> Unit,
success: (value: dynamic) -> Unit, cancel: (value: dynamic) -> Unit, _: dynamic ->
+ cell.getElement().style.asDynamic().overflow = "visible"
var onRenderedCallback: (() -> Unit)? = null
@Suppress("UNCHECKED_CAST") val data = cell.getData() as T
val component = it(cell, { callback ->
@@ -404,6 +405,7 @@ fun <T : Any> ColumnDefinition<T>.toJs(
val tmpFormatterFunction = formatterComponentFunction?.let {
{ cell: Tabulator.CellComponent, _: dynamic,
onRendered: (callback: () -> Unit) -> Unit ->
+ cell.getElement().style.asDynamic().overflow = "visible"
var onRenderedCallback: (() -> Unit)? = null
@Suppress("UNCHECKED_CAST") val data = cell.getData() as T
val component = it(cell, { callback ->