Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

Tabs resizing issue when not window based resize. #257

Open EliCDavis opened 7 years ago

EliCDavis commented 7 years ago

Bug, ~feature request, or proposal~:

When a resize occurs that restricts the visibility of the tabs which is not a window resize, the arrows visibility do not update.

What is the expected behavior?

Ideally checking if the arrows should be displayed for tab navigation should be based on a resize of the components size, not the windows size. A windows size can stay the same and something inside the page can occur to shrink the element,

What is the current behavior?

If no window resize occurs, the arrows visibility do not update

What are the steps to reproduce?

http://plnkr.co/edit/35SFbMJYetvCnYD6bkRY?p=preview

  1. Adjust the screen size so that the tabs are bouncing all the way in and partially 'out' of the page. (Notice how no arrows are being rendered to compensate for the smaller space)
  2. Drag the middle bar that separates the code from the rendered application while the tabs component is partially 'off' the page. If done correctly the arrows should have begun to render.

What is the use-case or motivation for changing an existing behavior?

Annoying

Which versions of Angular, MD2, OS, browsers are affected?

Current version of MD2

Is there anything else we should know?