react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Bug in agenda when display multiple items with smaller height than rendered day

Open nhanngt opened this issue 8 years ago • 16 comments

bug Have issue when I have 3 items on 24th. Has a space between the first item and the second one. Margin and Padding are set to zero.

nhanngt avatar Jul 19 '17 13:07 nhanngt

hi, could you create a code snippet that would reproduce this bug?

tautvilas avatar Jul 19 '17 14:07 tautvilas

Hi, I am too facing same issue after moving to latest code base v1.5.4. The first item is always place little bit higher for every day. calendar_layout_issue

dongawli avatar Jul 20 '17 13:07 dongawli

what is the version of react native that you use? can this bug also be reproduced in example agenda?

tautvilas avatar Jul 20 '17 13:07 tautvilas

I am using react-native: v0.44.3. I'll check and let you know whether its reproducible in agenda example.

dongawli avatar Jul 20 '17 13:07 dongawli

any updates @dongawli ?

tautvilas avatar Aug 02 '17 06:08 tautvilas

Hi,

Sorry, not get time to check. Got stuck in another issues.

Just give me a few minutes, I'll update

Thank you.

On Wed, Aug 2, 2017 at 12:10 PM, Tautvilas Mečinskas < [email protected]> wrote:

any updates @dongawli https://github.com/dongawli ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wix/react-native-calendars/issues/104#issuecomment-319582265, or mute the thread https://github.com/notifications/unsubscribe-auth/ASbdudd1amgWk8Pe3IGrT5-4HenLQ1wyks5sUBnggaJpZM4OcvlP .

dongawli avatar Aug 02 '17 06:08 dongawli

Hi,

Tried with example given on GIT repository. Its working fine in it.

screenshot_1501663196

I'll give a try with my application once free when get time.

dongawli avatar Aug 02 '17 08:08 dongawli

I think I've found the issue.. In the example we are setting the height randomly using Math. max (50, Math. floor (Math. random () * 150)). And in my application I've hard-coded the height to 65 which leads to the issue. If I set the height to 80 then there is no issue (see the screenshot). If the user sets the height of item below 80 then the issue starts showing. calendar_layout_issue

dongawli avatar Aug 02 '17 10:08 dongawli

thx for clarification, I will look into this

tautvilas avatar Aug 02 '17 11:08 tautvilas

Hi, I can not reproduce this behaviour, could you give me a code snipped that would demonstrate this bug?

tautvilas avatar Aug 17 '17 09:08 tautvilas

Ok, I was able to reproduce. The way agenda is implemented right now, there is no easy way to fix it. The reason that in example items render fine is because each item has flex:1 style. In order to avoid this problems rendered items should not be smaller in height than rendered day component.

tautvilas avatar Aug 17 '17 09:08 tautvilas

Any update on this one?

jkomyno avatar Nov 06 '17 10:11 jkomyno

I am also facing the issue: From the second item in the agenda, the height is smaller than the height of the first item.

image

tiedmud avatar May 13 '20 15:05 tiedmud

I could fix it by verifying if the item is not first item in day and added a height higher than the first item.

tiedmud avatar May 13 '20 16:05 tiedmud

@tiedmud can you share the code how you have solved this?

rpostulart avatar Sep 28 '21 14:09 rpostulart

Any updates here?

roots-ai avatar Jul 19 '22 18:07 roots-ai

Are there any Updates? I am facing this issue when the items list is updated, the items look like this!

Screenshot_1668697329

TahanyAljemzawy avatar Nov 17 '22 14:11 TahanyAljemzawy