Coder Social home page Coder Social logo

When the window width is adjusted, the width of the Button component also scales along with the container. about compose-multiplatform HOT 5 OPEN

uiexp avatar uiexp commented on May 30, 2024 3
When the window width is adjusted, the width of the Button component also scales along with the container.

from compose-multiplatform.

Comments (5)

uiexp avatar uiexp commented on May 30, 2024 3

This is a problem at the level of skiko and seems to be the result of how we tell Windows to scale the contents of the window until we update the picture here.

There's no easy fix for this. We could tell Windows not to stretch the picture, but then you'd probably see black bars when resizing. The real fix would be to make sure we update the picture before the next screen refresh.

Thank you for your answer. I hope it can be optimized!

from compose-multiplatform.

m-sasha avatar m-sasha commented on May 30, 2024 2

This is a problem at the level of skiko and seems to be the result of how we tell Windows to scale the contents of the window until we update the picture here.

There's no easy fix for this. We could tell Windows not to stretch the picture, but then you'd probably see black bars when resizing. The real fix would be to make sure we update the picture before the next screen refresh.

from compose-multiplatform.

uiexp avatar uiexp commented on May 30, 2024 1

I'm running on Windows 10. This is a video recording. I'll test on Mac later.

libs.versions.toml
[versions]
compose = "1.6.2"
compose-plugin = "1.6.1"
junit = "4.13.2"
kotlin = "1.9.23"

VID_20240322_115405.mp4

from compose-multiplatform.

changhexuefei avatar changhexuefei commented on May 30, 2024 1

The following is the performance of the above code on Windows 11.

20240322_172837.mp4

from compose-multiplatform.

m-sasha avatar m-sasha commented on May 30, 2024

Could you provide a screen recording and the full source code (include imports)? This doesn't reproduce on my Mac, but there's nothing here that is OS-specific.

Screen.Recording.2024-03-21.at.11.37.32.mp4

from compose-multiplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.