View port boundary intersection detection for select field list box - #27
View port boundary intersection detection for select field list box#27charlesr1971 wants to merge 7 commits into
Conversation
|
Hey @charlesr1971 ! |
|
@zetta83 No worries. I just wasn’t sure if this project was still being worked on. By the way, this is definitely the best mdl-selectfield, out there. I tried using a few others, but they were a bit buggy. And, I have noticed that the none of the others, use boundary detection. The Official Angular Material select element does use boundary detection, by the way. It would be nice if the Google Team would get around to adding the select element to Material Lite, like they have for Angular Material! But, I guess this one, is a pretty damn good alternative :) |
|
@zetta83 I have also added OPTGROUP support. Once an OPTGROUP tag is converted, it exhibits the characteristics of a disabled OPTION tag. An OPTION within an OPTGROUP is indented and the OPTGROUP label text content is slightly more opaque than a disabled OPTION. I have added the following class to an OPTGROUP:
I have added the following class to an OPTGROUP OPTION:
This will add CSS hooks to allow users to add custom styling. UPDATE: Added is-option class to only OPTION tags that are nested inside an OPTGROUP tag. This allows the CSS to detect nested OPTION tags and style them accordingly: |
…ide an optgroup tag. This allows the CSS to detect nested option tags and style tehm accordingly
|
@zetta83 I wasn't able to minify to:
You will find the JS changes in:
To test my changes, open:
|
I have added view port boundary intersection detection for top & bottom boundaries. When the list box overlaps the bottom view port boundary, the list box is moved upwards, so that the entire list box is visible. When the list box overlaps the top view port boundary, the list box is moved downwards, so that the entire list box is visible