Skip to content

flexWrap has definite, reproducible buggy behavior (!) #14429

@idibidiart

Description

@idibidiart

Reporting Bugs

Report a single bug per issue.

Since issue #8960 has so many bugs some of which turned out to be normal behavior per the Flexbox spec, I figured we need a new issue that focuses on an actual, definite bug

Here is the issue, first reported by @EyalSi

I've made a simple version of the code posted by @EyalSi in #8960 that shows an interesting definitely buggy behavior:

The only difference in the two screens below is a single extra "." after the last "test"

image1

image2

@kulmajaba there is more buggy behavior that I've encountered that may or may not be related to this

      <ScrollView > 
          <View style={{flexDirection: 'row',flexWrap:'wrap', backgroundColor: 'orange'}}>
              <View style={{margin: 15, backgroundColor: 'yellow'}}>
              <Text style={{fontSize:20}}> test test test test </Text>
              </View>
              <View style={{margin: 15, backgroundColor: 'yellow'}}>
              <Text style={{fontSize:20}}> test test test </Text>
              </View>
              <View style={{margin: 15, backgroundColor: 'yellow'}}>
              <Text style={{fontSize:20}}> test </Text>
              </View>

              <View style={{margin: 15, backgroundColor: 'red'}}>
              <Text style={{fontSize:20}}> test.. </Text>
              </View>

          </View>
          <Text>
          TEST
          </Text>
      </ScrollView>

This is only an issue when setting margins. If you set padding instead there is no issue.

Additional Information

  • React Native version: 0.43+
  • Platform: iOS and Android
  • Development Operating System: MacOS
  • Dev tools: Expo

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

    Issue actions