mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-19 20:28:56 +07:00
Fix MapEditor world-wrap flickering (#8608)
Co-authored-by: tunerzinc@gmail.com <vfylfhby>
This commit is contained in:
@ -134,6 +134,11 @@ class MapEditorScreen(map: TileMap? = null): BaseScreen(), RecreateOnResize {
|
||||
tileClickHandler?.invoke(it)
|
||||
}
|
||||
|
||||
if (tileMap.mapParameters.worldWrap) {
|
||||
result.sizeChanged()
|
||||
result.zoom(result.minZoom)
|
||||
}
|
||||
|
||||
stage.root.addActorAt(0, result)
|
||||
stage.scrollFocus = result
|
||||
|
||||
|
@ -82,7 +82,7 @@ open class ZoomableScrollPane(
|
||||
onViewportChanged()
|
||||
}
|
||||
|
||||
override fun sizeChanged() {
|
||||
public override fun sizeChanged() {
|
||||
updatePadding()
|
||||
super.sizeChanged()
|
||||
updateCulling()
|
||||
|
Reference in New Issue
Block a user