Only tested chrome and firefox on GNOME
Ubuntu Gnome 17.04
mdc-select width should be correct
returns short values.
When not yet attaching an instance, the element looks good. Once initialized, the selected text cannot be seen.
Would you mind uploading a few screen shots of this behavior?
Screenshot:

Temporary fix: empty function for setStyle
Related issue #1335
I fixed this by patching select, to allow spread them to the whole container width
import {select} from 'material-components-web';
class MDCSelect extends select.MDCSelect {
getDefaultFoundation() {
let foundation = super.getDefaultFoundation(),
super_setMenuStyle = foundation.setMenuStylesForOpenAtIndex_
foundation.resize = function() {
/* no action here */
}
foundation.setMenuStylesForOpenAtIndex_ = function (index) {
super_setMenuStyle.call(foundation, index)
const rect = foundation.adapter_.computeBoundingRect()
foundation.adapter_.setMenuElStyle('width', `${rect.width}px`);
}
return foundation
}
}
same issue
For some reason, it doesn't calculate my longest option correctly. It's always 24 px short (which is also the padding size).

Do you do somthing like
* {
box-sizing: border-box;
}
'cause then that's your problem.
The width is calculated as content-box
Ahh wow! Thanks!
That's in the default css generated by preact-cli. Removing it fixed my issue.
Closing this as obsolete.
Most helpful comment
Do you do somthing like
'cause then that's your problem.
The width is calculated as
content-box