Skip to content

minHeight behaves erroneously with non integral values #10217

@shahankit

Description

@shahankit

On providing minHeight with non integral values the children view with flex: 1, gets height = 0.

<View style={{minHeight: 1.23}}>
  <View style={{flex: 1, backgroundColor: 'red'}} />
</View>
  • React Native version: 0.33
  • Platform(s) (iOS, Android, or both?): both
  • Operating System (macOS, Linux, or Windows?): Mac

Activity

leeight

leeight commented on Oct 3, 2016

@leeight
Contributor

It works fine on the master branch.

image

shahankit

shahankit commented on Oct 3, 2016

@shahankit
Author

Okay then it might be solved.

locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @leeight@shahankit@react-native-bot

        Issue actions

          minHeight behaves erroneously with non integral values · Issue #10217 · facebook/react-native