material icon indicating copy to clipboard operation
material copied to clipboard

md-datepicker for ng-repeat items won't display properly when inside an md-tab element

Open FabVillegas opened this issue 11 years ago • 5 comments

This is an example of a correct md-datepicker. It works fine. But in this same view I have a md-tab element with some cards to display activities of a project.

image

Is this something to do with the properties of the positioning of a datepicker? image

FabVillegas avatar Oct 01 '15 03:10 FabVillegas

Opening any md-datepicker of any card of any item inside the md-tab sets its values as:

element.style { left: 733.641px; top: 130px; }

FabVillegas avatar Oct 01 '15 03:10 FabVillegas

Very strange. It looks like the logic that keeps the calendar pane on the screen is misbehaving. Is there any way I could debug this in action? A production in something like CodePen or JsBin would be the most useful.

jelbourn avatar Oct 01 '15 18:10 jelbourn

I cannot make the md-datepicker work in CodePen, but http://codepen.io/anon/pen/PPpPOm

FabVillegas avatar Oct 02 '15 06:10 FabVillegas

@FabVillegas That CodePen us usig version 0.8.3. The datepicker was added in 0.11.

jelbourn avatar Oct 02 '15 16:10 jelbourn

Fixed it. image

The problem is adding the md-tab with its own scroll, I guess having that messes up with the place where the datepicker opens.

Fixing the md-tab by adding the attribute md-dynamic-height

FabVillegas avatar Oct 06 '15 23:10 FabVillegas