[Resolved] Date selector obscured by header on mobile devices
This thread is resolved. Here is a description of the problem and solution.
Problem:
On small screens the date picker UI is partly obscured on the client's site by the header, which is rendered on top of the date picker.
Solution:
The theme in question sets a very high z-index for its header.
The solution is either to set a more sensible z-index for the header, or increase the z-index of the date picker to a higher level, with the following:
I am trying to: select a date for a custom field on a mobile device (iphone 6 and Windows phone)
Link to a page where the issue can be seen: hidden link
I expected to see: the date selector to render properly and show the year and month sectors
Instead, I got: only days calendar view. see enclosed image
repro steps:
on a mobile device (smartphone)
go to hidden link
use the following:
User - test
Password - test!!1122@@
go to hidden link
select the date picker
I looked on my phone and saw the issue (odd that it displays differently on a real device than in a mobile simulator in the desktop browser).
Two observations.
The first is that if the date field were further down the page I'm not sure it would be an issue.
In any case the cause of the issue is that the header has a very high z-index value which means it appears on top of the datepicker UI, obscuring the top part of it.
See the screenshot.
Such a high z-index seems superfluous to me and if you overwrite it to set the z-index back to a low number like 1 then I think it will solve the problem. You could actually lower it to 9999 and I think it should still work.
If you do notice any unexpected side-effects then let me know.
Hi Nigel,
thanks for the quick response.
i have to put the date picker at the top of the page as its act as a condition to display other things on the page below.
here is how the date picker z-index is currently defined (using F12).
I'm not sure how to change the z-index for the header and i rather not change the theme z-index.
as toolset set the z-index of the date picker to 1 i think i this should be increased to solve the problem. the questions is how do i set it it up in my css to override the current z-index set by toolset?
i tried in a few locations
1. a custom css plugin for the site
2. the theme additional css option
the above didn't work.
the only place that it actually worked is in the toolset user form css option.
after updating the css there it worked however when i cheek the page using F12 i still see the z-index=1
not sure why.