Skip to content

Timer-picker: Date-picker: direction should be auto-set according to the available space  #6616

@KKoukiou

Description

@KKoukiou

Describe the issue. What is the expected and unexpected behavior?
Currently the component offers the direction property. We (cockpit) want to have the default 'down' direction, however, in mobile mode, there is sometimes not space down. In this case we would like that the component automatically flips with the menu up.

Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
https://www.patternfly.org/v4/components/time-picker/

Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Enhancement

What is your product and what release version are you targeting?
Cockpit

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions