Closed ivanlares closed 6 years ago
Hello @ivanlares,
I cannot reproduce your issue with the demo of the DropDown (version 2.3.12).
Can you give a concrete example with code?
As far as I see, in the DropDown code, nowhere we do self.width = nil
Hi @kevin-hirsch,
Yes, I can create a project and share it here. But before I do that can you try using long strings for the cells. The string has to not fit the cell width.
If you still can't reproduce the error, I will create an example project.
Thank you
Sorry, it turns out the width property was never set only the anchorView. Everything works as expected.
The layout is recalculated when the
dataSource
property is set.There is an issue with the recalculation.
width
becomes nil after updating the datasource. Since width becomes nil the width of the dropdown will be set to the size of screen.I could push a fix but I thought it would be best to discuss it here because there might be something that I'm missing.
I noticed that others brought up this issue but I thought it would be best to bring it up here with a bit more detail.