Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ plugins {
id("org.jetbrains.kotlin.plugin.compose") version "2.0.0"
}

val jxBrowserVersion by extra { "8.14.0" } // The version of JxBrowser used in the examples.
val jxBrowserVersion by extra { "8.14.1" } // The version of JxBrowser used in the examples.
val guavaVersion by extra { "29.0-jre" } // Some of the examples use Guava.

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import com.teamdev.jxbrowser.extensions.callback.InstallExtensionCallback
import com.teamdev.jxbrowser.extensions.callback.OpenExtensionPopupCallback
import com.teamdev.jxbrowser.extensions.event.ExtensionInstalled
import com.teamdev.jxbrowser.view.compose.BrowserView
import com.teamdev.jxbrowser.view.compose.dnd.DragAndDropOptions
import com.teamdev.jxbrowser.view.compose.popup.PopupWindow
import com.teamdev.jxbrowser.view.compose.popup.PopupWindowState
import kotlinx.coroutines.CoroutineScope
Expand Down Expand Up @@ -134,6 +135,7 @@ fun SnapshotStateList<PopupWindowState>.addNewPopup(
) = add(
PopupWindowState(
browser = params.popupBrowser(),
dragAndDropOptions = mutableStateOf(DragAndDropOptions()),
scope = scope,
onClose = { remove(it) }
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import com.teamdev.jxbrowser.dsl.register
import com.teamdev.jxbrowser.dsl.removeCallback
import com.teamdev.jxbrowser.engine.RenderingMode
import com.teamdev.jxbrowser.view.compose.BrowserView
import com.teamdev.jxbrowser.view.compose.dnd.DragAndDropOptions
import com.teamdev.jxbrowser.view.compose.popup.PopupWindow
import com.teamdev.jxbrowser.view.compose.popup.PopupWindowState
import kotlinx.coroutines.CoroutineScope
Expand Down Expand Up @@ -111,6 +112,7 @@ fun SnapshotStateList<PopupWindowState>.addNewPopup(
PopupWindowState(
browser = params.popupBrowser(),
bounds = params.initialBounds(),
dragAndDropOptions = mutableStateOf(DragAndDropOptions()),
scope = scope,
onClose = { remove(it) }
)
Expand Down