Skip to content

Commit

Permalink
Re-validate interop container after adding component
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Feb 29, 2024
1 parent ba2457b commit 190ab5b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ internal class SwingInteropContainer(
index + nonInteropComponents
})
interopComponentsCount++

// Sometimes Swing displays the rest of interop views in incorrect order after removing,
// so we need to force re-validate it.
container.validate()
container.repaint()
}

override fun removeInteropView(nativeView: Component) {
Expand Down

0 comments on commit 190ab5b

Please sign in to comment.