Code Monkey home page Code Monkey logo

Comments (7)

Saadnajmi avatar Saadnajmi commented on June 2, 2024 1

I don't have an ETA for a fix yet, but it is something we'd like to have fixed since it's one of the basic scenarios.

from react-native-macos.

Saadnajmi avatar Saadnajmi commented on June 2, 2024 1

Just a slight update, we're gonna try to pick this up in the next couple of weeks. I know that this is a pretty annoying regression in 0.73, and we recognize its importance.

from react-native-macos.

Saadnajmi avatar Saadnajmi commented on June 2, 2024

Does it work with 0.72, so the regression started with 0.73?

from react-native-macos.

bear-ei avatar bear-ei commented on June 2, 2024

Does it work with 0.72, so the regression started with 0.73?

This problem started with 0.73, 0.72 and earlier versions work fine.

from react-native-macos.

AdrianFahrbach avatar AdrianFahrbach commented on June 2, 2024

Can confirm. I got the same issue!
It seems like translate is working fine, the other transforms are not working though.
@Saadnajmi Do you think that this is something that will be fixed soon?

from react-native-macos.

bear-ei avatar bear-ei commented on June 2, 2024

我还没有修复的预计时间,但这是我们希望修复的问题,因为它是基本场景之一。

截屏2024-02-29 18 42 04

I don't know if this is the same problem. In my development, I found that when the transform property translateY is used to offset an element, the rendering is visually effective. But when I inspect the element it doesn't work, and its event triggers are kept at the position before the offset.

This problem occurs in 0.72.*.

<AnimatedContainer
            {...containerProps}
            shape="extraSmall"
            containerHeight={containerLayout.height}
            containerPageX={containerLayout.pageX}
            containerPageY={containerLayout.pageY}
            containerWidth={containerLayout.width}
            layoutHeight={height}
            layoutWidth={width}
            supportingPosition={supportingPosition}
            testID={`tooltip__supporting--${id}`}
            type={type}
            visible={visible}
            style={{
                opacity: renderOpacity,
                transform: supportingPosition?.startsWith('vertical')
                    ? [{translateX: -(width / 2)}]
                    : [{translateY: -(height / 2)}],       //➡️ Here, translateY is used
            }}>
            <Inner {...onEvent} testID={`tooltip__supportingInner--${id}`}>
                <SupportingText
                    ellipsizeMode="tail"
                    numberOfLines={1}
                    size="small"
                    testID={`tooltip__supportingText--${id}`}
                    type="body">
                    {supportingText}
                </SupportingText>
            </Inner>
        </AnimatedContainer>

from react-native-macos.

amgleitman avatar amgleitman commented on June 2, 2024

This change from upstream appears to be the culprit: 5f40f08#diff-603b7dc6b8a6a1475051de116973331aa452b0c76cfa4f36cd413ac859e5534c

from react-native-macos.

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.