yurkinh / Plugin.Maui.Calendar

.NET MAUI port of XF calendar plugin
MIT License
142 stars 13 forks source link

Custom Width Height not working!! #91

Open praveenAnto opened 1 month ago

praveenAnto commented 1 month ago

I have applied small with and Height for the calendar but, the view is cropping the calendar cells. Is it the minimum width and height is already set or we can customize the entire height and width of the calendar. Kindly suggest me a solution.

praveenAnto commented 1 month ago

Any update on this @yurkinh ?

MykhailoDav commented 1 month ago

Hi @praveenAnto Could you please provide any sample or screenshot

praveenAnto commented 1 month ago

CalendarSample.zip

Hi @MykhailoDav ,

I have attached the sample for your reference, i have customized the calendar based on my requirement. In this, the cell views are cropping and i am unable to see my footer view as well.Kindly suggest me a solution.

Thanks.

MykhailoDav commented 1 month ago

Hi @praveenAnto Thanks for the sample, it helped, have you tried to add:

DayViewFontSize="7" DayViewSize="20"

I found this helpful, please let me know if I was able to help you.

praveenAnto commented 1 month ago

Hi @MykhailoDav ,

Thanks for sharing, I tried the code snippet but it's not working for the calendar cells which is having multi(2) digits. I have attached the screenshot for the same. Could you please check and update on the solution.

Thanks

CalendarIssue
MykhailoDav commented 1 month ago

Hi @praveenAnto, Have you tried to specify other values for DayViewFontSize and DayViewSize (you can specify a smaller value for DayViewFontSize or a larger value for DayViewSize) Also, I think it might depend on your screen resolution, you can even try setting it to “OnPlatform”

MykhailoDav commented 1 week ago

Hi @praveenAnto, have you resolve your problem?