Skip to content

Commit

Permalink
Do not revalidate window after resizing. (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-sasha authored Sep 16, 2024
1 parent 2244dcf commit 13c6cad
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 13c6cad

Please sign in to comment.