Skip to content

Commit

Permalink
Do not revalidate window after resizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-sasha committed Sep 16, 2024
1 parent 0c44a70 commit 532a3c1
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.compose.ui.unit.isSpecified
import androidx.compose.ui.window.WindowPlacement
import androidx.compose.ui.window.WindowPosition
import androidx.compose.ui.window.density
import androidx.compose.ui.window.layoutDirection
import androidx.compose.ui.window.layoutDirectionFor
import java.awt.Component
import java.awt.Dialog
Expand Down Expand Up @@ -120,7 +119,6 @@ private fun Window.setSizeImpl(size: DpSize) {
if (isWidthSpecified) width else computedPreferredSize!!.width,
if (isHeightSpecified) height else computedPreferredSize!!.height,
)
revalidate() // Calls doLayout on the ComposeLayer, causing it to update its size
}

internal fun Window.setPositionImpl(
Expand Down

0 comments on commit 532a3c1

Please sign in to comment.