Giter Club home page Giter Club logo

Comments (5)

rebeccaXam avatar rebeccaXam commented on July 20, 2024

I am trying to fix this one as soon as I can, see also #27
I have not seen this on Android before, only on the Windows platforms.

from xamforms.controls.calendar.

rebeccaXam avatar rebeccaXam commented on July 20, 2024

Version 1.1.1 should hopefully work a bit better.
I would also recommend, to set a smaller font size WeekdaysFontSize and DatesFontSize.

from xamforms.controls.calendar.

mennetorelli avatar mennetorelli commented on July 20, 2024

Hello, thanks for the advice, however in UWP, even if I set a small DateFontSize, the date buttons won't resize and so they are cut off... Do you know if there is another workaround I can do?

from xamforms.controls.calendar.

rebeccaXam avatar rebeccaXam commented on July 20, 2024

Hello, I looked through the code again and the buttons will not go smaller that 48 pixel (MinWidth/MinHeight). I have set this a long time ago, but I am not sure why anymore (I think I had something to do with the border not coming out right). I will investigate if it is still needed.

For now, you could remove the XamForms.Controls.Calendar.UWP.dll from your UWP project (Reference) but leave the XamForms.Controls.Calendar.dll and add a copy of the CalendarButtonRenderer.cs to your UWP Project. Change the Control.MinWidth = 48; and Control.MinHeight = 48; to whatever works.

Hoop this helps ;)

from xamforms.controls.calendar.

glfrankel avatar glfrankel commented on July 20, 2024

Rebecca or anyone else,
I'm experiencing this issue on both iOS and Android, but for the weekdays only. It's quite severe on Android. To be clear (and to help with searching): the calendar weekday labels are being cut off.

I'm using the calendar plugin in another, similar app, and I don't have the issue there, and I can't sort out what's different. In this app, the calendar is in a vertical stack layout and its next sibling is a vertical stack layout. (In the other app, where I don't have this issue, it's also in a vertical stack layout and its next sibling is a grid. Ah, but the whole page is in a scroll view, which be relieving "spacing pressure" somehow, whereas the problem app's page is not in scroll view.)

I've tried setting the WeekdaysFontSize attribute to a variety of sizes and not setting it at all. Even at a smaller or larger size, they're still visually clipped.

On iOS:
weekdays_cutoff_iOS

On Android:
weekdays_cutoff_android

Any suggestions? I really like and utilize this plugin to great effect, but this aspect makes it look unprofessional so would love to find a fix / workaround. Thanks.

from xamforms.controls.calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.