evadne / DayFlow

iOS Date Picker + Infinite Scrolling
229 stars 21 forks source link

Landscape support doesn't work as expected #4

Open akavlie opened 11 years ago

akavlie commented 11 years ago

In landscape, DayFlow's day tiles continue beyond the standard layout (7 days per row) that one would expect in a calendar. There are 10 tiles per row in landscape.

Instead, it should stretch each tile horizontally to maintain one week per row.

evadne commented 11 years ago

Thanks for reporting. I think this is a design problem and it’s better to just maintain a seven item per row setting. I have two ideas to approach this:

Ideas? Do you have a mock / composition that shows use of this component in landscape for more context?

Thanks!

On Jul 7, 2013, at 12:45 AM, Aaron Kavlie notifications@github.com wrote:

In landscape, DayFlow's day tiles continue beyond the standard layout (7 days per row) that one would expect in a calendar. There are 10 tiles per row in landscape.

Instead, it should stretch each tile horizontally to maintain one week per row.


Reply to this email directly or view it on GitHub: https://github.com/evadne/DayFlow/issues/4

akavlie commented 11 years ago

The sample app linked in the repo's README shows the problem in the simulator. See the attachment.

For my purposes just a horizontal stretch would be better; perhaps it could be an option. Also, Autolayout may work well for this, rather than hard-coded cell sizes, as there are two different screen widths to deal with, and if you decide to put a view on the side of the calendar (which I may do in landscape), that would be yet another dimension that varies from the standard portrait width that this was designed for.

screen shot 2013-07-07 at 9 25 03 pm

akavlie commented 11 years ago

btw, I plan to modify the design quite a bit, to be somewhat similar to Apple's iOS 7 calendar design (though not exactly). Boxes won't be visible.

dcparis commented 10 years ago

Is there any code resolved for this issue. I am working with the same problem with landscape mode? I have it showing 7 cells in landscape but probably did not use the best method to fix this. Also the calendar seems to jump back 2 months each time I rotate to landscape. Thanks you. Darin